We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d0e15f commit af31f74Copy full SHA for af31f74
.github/workflows/release.yml
@@ -0,0 +1,30 @@
1
+name: Release
2
+on:
3
+ push:
4
+ branches:
5
+ - main
6
+ - next
7
+ - beta
8
+ - "*.x" # maintenance release branches, e.g. v1.x
9
+
10
+jobs:
11
+ release:
12
+ name: release
13
+ runs-on: ubuntu-latest
14
+ steps:
15
+ - uses: actions/checkout@v2
16
+ - uses: actions/setup-node@v2
17
+ with:
18
+ node-version: "12.x"
19
+ - uses: actions/cache@v1
20
21
+ path: ~/.npm
22
+ key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
23
+ restore-keys: |
24
+ ${{ runner.os }}-node-
25
+ - run: npm ci
26
+ - run: npm run build
27
+ - run: npx semantic-release
28
+ env:
29
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
30
+ NPM_TOKEN: ${{ secrets.OCTOKITBOT_NPM_TOKEN }}
0 commit comments