Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 7 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: release

permissions:
id-token: write # Required for NPM trusted publishing
contents: write
Comment thread
acalcutt marked this conversation as resolved.

on:
push:
branches: [master]
Expand Down Expand Up @@ -36,8 +40,6 @@ jobs:
needs: release-check
if: ${{ needs.release-check.outputs.published == 'false' }}
runs-on: ubuntu-latest
permissions:
contents: write
defaults:
run:
shell: bash
Expand All @@ -48,6 +50,7 @@ jobs:
- uses: actions/setup-node@v6
with:
node-version: 22
Comment thread
lukekarrys marked this conversation as resolved.
Outdated
registry-url: 'https://registry.npmjs.org'

- run: npm ci

Expand Down Expand Up @@ -90,16 +93,8 @@ jobs:

- name: Publish to NPM (release)
if: ${{ steps.prepare_release.outputs.prerelease == 'false' }}
run: |
npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public

- name: Publish to NPM (prerelease)
if: ${{ steps.prepare_release.outputs.prerelease == 'true' }}
run: |
npm config set //registry.npmjs.org/:_authToken "${NPM_TOKEN}"
npm publish --tag next --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --tag next --access public
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"author": "Dane Springmeyer <dane@mapbox.com>",
"repository": {
"type": "git",
"url": "git://github.com/mapbox/node-pre-gyp.git"
"url": "https://github.com/mapbox/node-pre-gyp"
},
"bin": "./bin/node-pre-gyp",
"main": "./lib/node-pre-gyp.js",
Expand Down