-
Notifications
You must be signed in to change notification settings - Fork 76
feat: publish zero to npm via release-please #367
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
+139
−7
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
4f84e1e
feat: publish zero to npm via release-please
kevincodex1 7436769
Update .github/workflows/release-please.yml
kevincodex1 0d0e5e9
feat: publish to npm via OIDC trusted publishing instead of NPM_TOKEN
kevincodex1 94d8148
fix: drop npm@latest from the OIDC publish path
kevincodex1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,35 @@ | ||
| name: Release Please | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| permissions: | ||
| contents: write # push the release-PR branch, create the tag + GitHub Release | ||
| pull-requests: write # open/update the release PR | ||
| issues: write # create/apply release-tracking labels on the release PR | ||
| actions: write # dispatch release-artifacts.yml once a release is cut | ||
|
|
||
| jobs: | ||
| release-please: | ||
| name: Release PR / tag | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Run release-please | ||
| id: release | ||
| uses: googleapis/release-please-action@a02a34c4d625f9be7cb89156071d8567266a2445 # v4.2.0 | ||
|
|
||
| # Tags created with the default GITHUB_TOKEN never fire `on: push: tags` | ||
| # workflows (GitHub suppresses workflows triggered by workflow-created | ||
| # events), so release-artifacts.yml would not run for a release-please | ||
| # tag. workflow_dispatch invoked through the API is exempt from that | ||
| # suppression — dispatch the artifacts build at the new tag explicitly. | ||
| - name: Build and publish release artifacts | ||
| if: ${{ steps.release.outputs.release_created }} | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| gh workflow run release-artifacts.yml \ | ||
| --repo "$GITHUB_REPOSITORY" \ | ||
| --ref "${{ steps.release.outputs.tag_name }}" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json", | ||
| "release-type": "node", | ||
| "include-component-in-tag": false, | ||
| "bootstrap-sha": "02f0c0929bec65f5fc41bdcab3eb518d2b0b329a", | ||
| "packages": { | ||
| ".": { | ||
| "package-name": "@gitlawb/zero", | ||
| "release-as": "0.1.0" | ||
| } | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.