зеркало из https://github.com/github/combobox-nav.git
Update to use latest npm CLI release
The new version has provenance support built in. https://github.com/npm/cli/pull/6163
This commit is contained in:
Родитель
8b336f195e
Коммит
8edb9bfc58
|
@ -18,29 +18,12 @@ jobs:
|
|||
node-version: 18
|
||||
registry-url: https://registry.npmjs.org/
|
||||
cache: npm
|
||||
- run: npm install -g npm@latest
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- run: npm version ${TAG_NAME} --git-tag-version=false
|
||||
env:
|
||||
TAG_NAME: ${{ github.event.release.tag_name }}
|
||||
|
||||
# Provenance beta builds
|
||||
# Remove when stable
|
||||
- name: Clone npm
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
repository: npm/cli
|
||||
ref: provenance
|
||||
path: npm
|
||||
- name: Link npm
|
||||
run: |
|
||||
cd npm
|
||||
node . link
|
||||
cd ..
|
||||
npm version
|
||||
# Provenance beta builds
|
||||
# Remove when stable
|
||||
|
||||
- run: npm whoami; npm --ignore-scripts publish --provenance --access public
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
|
||||
|
|
Загрузка…
Ссылка в новой задаче