We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbe24c5 commit ff29a24Copy full SHA for ff29a24
1 file changed
.github/workflows/publish.yml
@@ -7,9 +7,14 @@ on:
7
jobs:
8
build:
9
runs-on: ubuntu-latest
10
+ permissions:
11
+ contents: read
12
+ packages: write
13
steps:
14
- uses: actions/checkout@v3
- - uses: actions/setup-node@v3
15
+
16
+ - name: Setup Node.js
17
+ uses: actions/setup-node@v3
18
with:
19
node-version: '20.x'
20
registry-url: 'https://npm.pkg.github.com'
@@ -21,6 +26,11 @@ jobs:
21
26
- name: Build
22
27
run: npm run build
23
28
29
+ - name: Create .npmrc file
30
+ run: |
31
+ echo "@th3hero:registry=https://npm.pkg.github.com/" >> .npmrc
32
+ echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
33
24
34
- name: Publish to GitHub Packages
25
35
run: npm publish
36
env:
0 commit comments