Skip to content

Set up release workflow and NPM provenance #945

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

Merged
merged 11 commits into from
Jun 1, 2025
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Enable npm provenance
  • Loading branch information
Demivan committed Jun 1, 2025
commit 8922a7a503a7fd32b9e454609235473c2662700b
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
workflow_dispatch:
inputs:
increment:
description: "Increment type: major, minor, patch, pre..."

Check failure on line 6 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Strings must use singlequote
required: true
type: choice
options:
Expand All @@ -22,13 +22,14 @@
- uses: actions/checkout@v4.2.2
- name: git config
run: |
git config user.name github-actions[bot]

Check failure on line 25 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Expected indentation of 10 spaces but found 12 spaces
git config user.email 41898282+github-actions[bot]@users.noreply.github.com

Check failure on line 26 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / Lint source code

Expected indentation of 10 spaces but found 12 spaces
- run: npm install
- run: npm run release -- --increment ${{github.event.inputs.increment}} --ci --dry-run
Copy link
Preview

Copilot AI Jun 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The --dry-run flag will prevent any actual version bump or publication—remove it to perform real releases.

Suggested change
- run: npm run release -- --increment ${{github.event.inputs.increment}} --ci --dry-run
- run: npm run release -- --increment ${{github.event.inputs.increment}} --ci

Copilot uses AI. Check for mistakes.

env:
# For release-it
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
# For lerna-changelog
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
Loading
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy