There was an error while loading. Please reload this page.
2 parents ff20c32 + 8dfdb87 commit 171dc9bCopy full SHA for 171dc9b
2 files changed
.github/workflows/main.yml
.github/workflows/release.yml
@@ -0,0 +1,32 @@
1
+name: Create Relase & Publish Package
2
+
3
+on:
4
+ push:
5
+ tags:
6
+ - 'v*'
7
8
+env:
9
+ NODE_VERSION: 16
10
11
+jobs:
12
+ build:
13
+ runs-on: ubuntu-22.04
14
+ timeout-minutes: 5
15
+ steps:
16
+ - uses: actions/checkout@v3
17
+ - uses: actions/github-script@v6
18
+ with:
19
+ script: |
20
+ github.rest.repos.createRelease({
21
+ owner: context.repo.owner,
22
+ repo: context.repo.repo,
23
+ tag_name: '${{ github.ref }}',
24
+ name: 'Release ${{ github.ref_name }}'
25
+ })
26
+ - uses: aboutbits/github-actions-node/setup-and-install@v1
27
28
+ node-version: ${{ env.NODE_VERSION }}
29
+ registry-url: 'https://registry.npmjs.org'
30
+ - run: npm publish
31
+ env:
32
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments