Merge pull request #100 from github/gracepark-actions-maintenance
Upgrade node to 22 and add provenance
This commit is contained in:
Коммит
5c6e9aed99
|
@ -7,7 +7,7 @@
|
|||
// Update 'VARIANT' to pick a Node version: 16, 14, 12.
|
||||
// Append -bullseye or -buster to pin to an OS version.
|
||||
// Use -bullseye variants on local arm64/Apple Silicon.
|
||||
"args": { "VARIANT": "16" }
|
||||
"args": { "VARIANT": "22" }
|
||||
},
|
||||
|
||||
// Set *default* container specific settings.json values on container create.
|
||||
|
|
|
@ -5,11 +5,11 @@ jobs:
|
|||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js 18.x
|
||||
uses: actions/setup-node@v1
|
||||
- uses: actions/checkout@v4
|
||||
- name: Use Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18.x
|
||||
node-version: 22.x
|
||||
- name: npm install, build, and test
|
||||
run: |
|
||||
npm install
|
||||
|
|
|
@ -4,14 +4,17 @@ on:
|
|||
release:
|
||||
types: [created]
|
||||
|
||||
permissions:
|
||||
id-token: write
|
||||
|
||||
jobs:
|
||||
publish-npm:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 18
|
||||
node-version: 22
|
||||
registry-url: https://registry.npmjs.org/
|
||||
cache: npm
|
||||
- run: npm ci
|
||||
|
@ -19,6 +22,6 @@ jobs:
|
|||
- run: npm version ${TAG_NAME} --git-tag-version=false
|
||||
env:
|
||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||
- run: npm whoami; npm --ignore-scripts publish
|
||||
- run: npm whoami; npm --ignore-scripts publish --provenance
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче