Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to use latest npm CLI release #251

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 1 addition & 18 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down