mirror of
https://github.com/actions/setup-node
synced 2025-04-08 09:55:51 +00:00
Push
This commit is contained in:
parent
587f0ce0ad
commit
24ede735a0
1 changed files with 10 additions and 17 deletions
27
.github/workflows/test.yml
vendored
27
.github/workflows/test.yml
vendored
|
@ -7,23 +7,16 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-node@v4
|
- name: Set up Node.js
|
||||||
|
uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
node-version: '21.x'
|
node-version: '21.x' # Update this to the Node.js version you want to use
|
||||||
registry-url: 'https://registry.npmjs.org'
|
registry-url: 'https://registry.npmjs.org'
|
||||||
- run: npm ci
|
- name: Install dependencies
|
||||||
- run: npm test
|
run: |
|
||||||
|
npm install
|
||||||
publish-npm:
|
npm run build
|
||||||
needs: build
|
- name: Publish
|
||||||
runs-on: ubuntu-latest
|
run: npm publish
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: actions/setup-node@v4
|
|
||||||
with:
|
|
||||||
node-version: '21.x'
|
|
||||||
registry-url: 'https://registry.npmjs.org'
|
|
||||||
- run: npm ci
|
|
||||||
- run: npm publish
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} # Ensure NPM_TOKEN is set in your repository secrets
|
Loading…
Add table
Reference in a new issue