-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1444 from NullVoxPopuli/release-workflow
Add release workflow
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,33 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
release: | ||
name: 'Tagged Release' | ||
runs-on: 'ubuntu-latest' | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wyvox/action-setup-pnpm@v3 | ||
with: | ||
node-registry-url: "https://registry.npmjs.org" | ||
- run: pnpm build | ||
|
||
# > This is not interactive right? | ||
# correct | ||
# | ||
# > This doesn't bump the version, just publish right? | ||
# correct | ||
# | ||
# > Do we have a way to tell it to ignore already published packages in case we need to re-run the job? | ||
# this is default behavior | ||
# | ||
# > It will skip the private packages, presumably? | ||
# yes | ||
- run: pnpm -r publish --access public | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |