Skip to content

Commit

Permalink
chore: TET-135 release please (#77)
Browse files Browse the repository at this point in the history
* chore: TET-135 release please

* chore: TET-135 release please

* chore: TET-135 release please

* chore: TET-135 release please
  • Loading branch information
kudyniuk authored Oct 6, 2023
1 parent 286483c commit 228683a
Show file tree
Hide file tree
Showing 7 changed files with 137 additions and 2,308 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-latest.yml
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}}
43 changes: 43 additions & 0 deletions .github/workflows/release-rc.yml
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}}
49 changes: 0 additions & 49 deletions .github/workflows/release.yml

This file was deleted.

1 change: 1 addition & 0 deletions commitlint.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ module.exports = {
'jira-ticket': [2, 'always'],
'subject-case': [0],
'footer-max-line-length': [0],
'body-max-line-length': [0],
},
};
12 changes: 7 additions & 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 All @@ -85,6 +81,12 @@
"react-dom": "^18.0.0",
"styled-components": "^5.0.0"
},
"exports": {
".": {
"import": "./dist/tetrisly-react.js",
"require": "./dist/tetrisly-react.umd.cjs"
}
},
"repository": {
"type": "git",
"url": "https://github.com/VirtusLab/tetrisly-react.git"
Expand Down
23 changes: 0 additions & 23 deletions release.config.cjs

This file was deleted.

Loading

0 comments on commit 228683a

Please sign in to comment.