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
Next Next commit
Set up release workflow
  • Loading branch information
Demivan committed Jun 1, 2025
commit 4fcf53648606d26a25d318784229094d79fada00
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release & Publish to NPM & GitHub
on:
workflow_dispatch:
inputs:
increment:
description: "Increment type: major, minor, patch, pre..."
required: true
type: choice
options:
- patch
- minor
- major
- prepatch
- preminor
- premajor
default: patch

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: git config
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- 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 }}
# For lerna-changelog
GITHUB_AUTH: ${{ secrets.GITHUB_TOKEN }}
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