Skip to content

Commit

Permalink
chore: TET-135 release please
Browse files Browse the repository at this point in the history
  • Loading branch information
kudyniuk committed Oct 5, 2023
1 parent 286483c commit ea3a734
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 2,308 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release-latest.yml
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}}
33 changes: 33 additions & 0 deletions .github/workflows/release-rc.yml
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}}
49 changes: 0 additions & 49 deletions .github/workflows/release.yml

This file was deleted.

6 changes: 1 addition & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@
"test": "vitest run",
"storybook": "storybook dev -p 6006",
"build-storybook": "storybook build",
"prepare": "husky install",
"semantic-release": "semantic-release"
"prepare": "husky install"
},
"dependencies": {
"@virtuslab/tetrisly-icons": "^1.1.1",
Expand All @@ -34,8 +33,6 @@
"devDependencies": {
"@commitlint/cli": "^17.7.1",
"@commitlint/config-conventional": "^17.7.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@storybook/addon-essentials": "^7.0.26",
"@storybook/addon-interactions": "^7.0.26",
"@storybook/addon-links": "^7.0.26",
Expand Down Expand Up @@ -69,7 +66,6 @@
"prettier": "^3.0.2",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"semantic-release": "^22.0.5",
"storybook": "^7.0.26",
"styled-components": "^5.3.3",
"typescript": "^5.1.6",
Expand Down
23 changes: 0 additions & 23 deletions release.config.cjs

This file was deleted.

Loading

0 comments on commit ea3a734

Please sign in to comment.