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 c53f30f commit 547445eCopy full SHA for 547445e
.github/workflows/npm-publish-github-packages.yml
@@ -0,0 +1,39 @@
1
+name: Build
2
+
3
+on:
4
+ release:
5
+ types: [created]
6
7
+jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v3
12
+ - uses: actions/setup-node@v3
13
+ with:
14
+ node-version: 16
15
+ - run: npm ci
16
+ - run: npm test
17
18
+ publish-gpr:
19
+ needs: build
20
21
+ permissions:
22
+ contents: read
23
+ packages: write
24
25
26
27
28
29
+ registry-url: https://npm.pkg.github.com/
30
+ - name: Install dependencies
31
+ run: yarn && yarn install
32
33
+ - name: Build
34
+ run: yarn build
35
36
+ - name: Publish
37
+ run: npm ci && npm publish
38
+ env:
39
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
0 commit comments