generated from jupyter-naas/data-product-framework
-
Notifications
You must be signed in to change notification settings - Fork 7
36 lines (35 loc) · 1.01 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
push:
branches:
- main
- dev
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 'lts/*'
- name: Install dependencies
run: |
cd .github \
&& npm ci \
&& cd .. \
&& (rm package.json || true) \
&& (rm package-lock.json || true) \
&& ln -s .github/node_modules node_modules \
&& ln -s .github/package.json package.json \
&& ln -s .github/package-lock.json package-lock.json \
&& ln -s .github/.releaserc .releaserc
- name: Release
env:
# GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Use this if you need to trigger CI/CD based on new release being published.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release