-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
117 additions
and
2,308 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,34 @@ | ||
on: | ||
push: | ||
branches: | ||
- "main" | ||
workflow_dispatch: | ||
|
||
name: Release Latest [Automatic] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-latest: | ||
name: Release Latest | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: production | ||
if: contains(github.event.head_commit.message, 'chore(main)') | ||
steps: | ||
- name: Create Tag and Release | ||
uses: google-github-actions/[email protected] | ||
id: release-latest | ||
with: | ||
release-type: node | ||
package-name: "@virtuslab/tetrisly-react" | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Change from RC to Latest | ||
run: npm dist-tag add $(npm dist-tag rm @virtuslab/tetrisly-react@rc rc | cut -c 6-) latest | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
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 @@ | ||
on: | ||
workflow_dispatch: | ||
name: Prepare Release [Manual] | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
|
||
jobs: | ||
release-rc: | ||
name: Release Candidate | ||
runs-on: ubuntu-latest | ||
environment: | ||
name: rc | ||
steps: | ||
- name: Prepare Pull Request | ||
uses: google-github-actions/[email protected] | ||
id: release | ||
with: | ||
release-type: node | ||
package-name: "@virtuslab/tetrisly-react" | ||
prerelease: true | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ fromJson(steps.release.outputs.pr).headBranchName }} | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Publish Release Candidate | ||
run: npm publish --tag rc | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.