8000 Update to use latest npm CLI release · github/relative-time-element@a664a44 · GitHub
[go: up one dir, main page]

Skip to content

Commit a664a44

Browse files
authored
Update to use latest npm CLI release
The new version has provenance support built in. npm/cli#6163
1 parent 244af66 commit a664a44

File tree

1 file changed

+1
-18
lines changed

1 file changed

+1
-18
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,12 @@ jobs:
1818
node-version: 18
1919
registry-url: https://registry.npmjs.org/
2020
cache: npm
21+
- run: npm install -g npm@latest
2122
- run: npm ci
2223
- run: npm test
2324
- run: npm version ${TAG_NAME} --git-tag-version=false
2425
env:
2526
TAG_NAME: ${{ github.event.release.tag_name }}
26-
27-
# Provenance beta builds
28-
# Remove when stable
29-
- name: Clone npm
30-
uses: actions/checkout@v3
31-
with:
32-
repository: npm/cli
33-
ref: provenance
34-
path: npm
35-
- name: Link npm
36-
run: |
37-
cd npm
38-
node . link
39-
cd ..
40-
npm version
41-
# Provenance beta builds
42-
# Remove when stable
43-
4427
- run: npm whoami; npm --ignore-scripts publish --provenance --access public
4528
env:
4629
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)
0