Skip to content

Commit 9727266

Browse files
committed
wip
1 parent b76e4a6 commit 9727266

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,12 @@ jobs:
3434
needs: test # Ensure the tests are run first
3535

3636
steps:
37-
- name: Checkout repository
38-
uses: actions/checkout@v2
39-
40-
- name: Set up Node.js
41-
uses: actions/setup-node@v3
37+
- uses: actions/checkout@v4
38+
# Setup .npmrc file to publish to npm
39+
- uses: actions/setup-node@v4
4240
with:
43-
node-version: 18 # Use any version (this is just for publishing)
41+
node-version: '20.x'
42+
registry-url: 'https://registry.npmjs.org'
4443

4544
- name: Install dependencies
4645
run: npm install # Install dependencies from the lockfile
@@ -50,6 +49,5 @@ jobs:
5049

5150
- name: Publish to npm
5251
run: npm publish --access public # Publish to npm
53-
5452
env:
5553
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Ensure the token is set in GitHub Secrets

0 commit comments

Comments
 (0)