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.
2 parents 266517c + 19c06cb commit d9abfa7Copy full SHA for d9abfa7
1 file changed
.github/workflows/build.yml
@@ -86,6 +86,9 @@ jobs:
86
publish:
87
name: 'Publish npm package'
88
runs-on: ubuntu-latest
89
+ permissions:
90
+ id-token: write
91
+ contents: read
92
needs:
93
- build
94
- act-test
@@ -102,16 +105,18 @@ jobs:
102
105
uses: actions/download-artifact@v4
103
106
with:
104
107
name: the-built
108
+
109
+ - name: Update npm
110
+ run: npm install -g npm@latest
111
112
- name: 'Publish to NPM (latest)'
113
if: "!contains(github.ref, '-pre.')"
114
run: npm publish --access=public
- env:
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
115
116
- name: 'Publish to NPM (next)'
117
if: "contains(github.ref, '-pre.')"
118
run: npm publish --access=public --tag=next
119
120
deploy:
121
needs: build
122
0 commit comments