mirror of
https://github.com/electron/node-gyp.git
synced 2025-08-15 12:58:19 +02:00
chore: publish to npm with release-please (#3051)
This commit is contained in:
parent
d22e2eb080
commit
8319847363
1 changed files with 14 additions and 0 deletions
14
.github/workflows/release-please.yml
vendored
14
.github/workflows/release-please.yml
vendored
|
@ -32,3 +32,17 @@ jobs:
|
|||
needs: [ release-please ]
|
||||
if: needs.release-please.outputs.pr || startsWith(github.head_ref, 'release-please--')
|
||||
uses: ./.github/workflows/tests.yml
|
||||
|
||||
npm-publish:
|
||||
needs: release-please
|
||||
if: ${{ needs.release-please.outputs.release_created }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: lts/*
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
- run: npm publish --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue