We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8601b4b commit 8cf10fcCopy full SHA for 8cf10fc
1 file changed
.github/workflows/publish.yml
@@ -0,0 +1,26 @@
1
+# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
+# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
+
4
+name: Node.js Package
5
6
+on:
7
+ release:
8
+ types: [created]
9
10
+jobs:
11
+ build:
12
+ uses: ./.github/workflows/node.js.yml
13
14
+ publish-npm:
15
+ needs: build
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - uses: actions/checkout@v3
19
+ - uses: actions/setup-node@v3
20
+ with:
21
+ node-version: 16
22
+ registry-url: https://registry.npmjs.org/
23
+ cache: 'yarn'
24
+ - run: yarn publish
25
+ env:
26
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments