We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f7f3f04 + 70cfeb8 commit 081f80cCopy full SHA for 081f80c
.github/workflows/release.yml
@@ -0,0 +1,33 @@
1
+name: Create and publish a release
2
+
3
+on:
4
+ push:
5
+ branches: ['release']
6
7
+jobs:
8
+ build-and-push-package:
9
+ runs-on: ubuntu-latest
10
11
+ permissions:
12
+ contents: read
13
+ packages: write
14
+ attestations: write
15
+ id-token: write
16
+ steps:
17
+ - name: Checkout repository
18
+ uses: actions/checkout@v4
19
+ - name: Use Node.js 20.x
20
+ uses: actions/setup-node@v4
21
+ with:
22
+ node-version: 20.x
23
+ registry-url: 'https://npm.pkg.github.com'
24
+ scope: '@usdigitalresponse'
25
+ - name: Install dependencies
26
+ run: npm i
27
+ - name: Build package
28
+ run: npm run build
29
30
+ - name: Publish
31
+ run: npm publish
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments