-
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.
* chore: TET-135 release please * chore: TET-135 release please * chore: TET-135 release please * chore: TET-135 release please
- Loading branch information
Showing
7 changed files
with
137 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,37 @@ | ||
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 | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
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: ${{ matrix.node-version }} | ||
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,43 @@ | ||
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 | ||
strategy: | ||
matrix: | ||
node-version: [18.x] | ||
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: ${{ matrix.node-version }} | ||
cache: 'yarn' | ||
registry-url: 'https://registry.npmjs.org' | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
- name: Build package | ||
run: yarn build | ||
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies | ||
run: npm audit signatures | ||
- 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 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.