We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f5a8a2 commit 898f957Copy full SHA for 898f957
1 file changed
.github/workflows/publish.yml
@@ -4,6 +4,9 @@ on:
4
release:
5
types: [published]
6
7
+permissions:
8
+ contents: read
9
+
10
jobs:
11
publish:
12
runs-on: ubuntu-latest
@@ -20,8 +23,15 @@ jobs:
20
23
- name: Build
21
24
run: bun run build
22
25
- - name: Create .npmrc
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
26
+ - name: Setup npm auth
27
+ run: |
28
+ cat > .npmrc << EOF
29
+ //registry.npmjs.org/:_authToken=\${NPM_TOKEN}
30
+ EOF
31
+ env:
32
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
33
34
- name: Publish to npm
- run: npm publish
35
+ run: npm publish --access public
36
37
0 commit comments