We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b60008 commit b1c4186Copy full SHA for b1c4186
.github/workflows/release.yml
@@ -12,16 +12,27 @@ jobs:
12
13
do_release:
14
runs-on: ubuntu-latest
15
+ permissions:
16
+ contents: read
17
+ id-token: write
18
steps:
19
- uses: actions/checkout@v4
20
- name: setup node
21
uses: actions/setup-node@v4
22
with:
- node-version: '14'
23
+ node-version: '22'
24
+ registry-url: 'https://registry.npmjs.org'
25
- name: Build library
26
run: |
27
npm install
28
npm run build
29
+ - name: Publish to npmjs
30
+ if: startsWith(github.ref, 'refs/tags')
31
+ run: npm publish --provenance --access public
32
+ env:
33
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34
+ - name: Pack library
35
+ run: |
36
npm pack
37
echo "NPM_TGZ=$(ls jsfive*.tgz)" >> $GITHUB_ENV
38
- name: Upload artifact
0 commit comments