Skip to content

Commit

Permalink
chore: add release workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
chizukicn committed Jul 31, 2023
1 parent 1ee668a commit 3b17c17
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 172 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: 18
cache: pnpm
registry-url: 'https://registry.npmjs.org'

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i

- name: PNPM build
run: pnpm run build

- name: Publish to NPM
run: pnpm -r publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"prepare": "npx simple-git-hooks",
"preinstall": "npx only-allow pnpm",
"release": "pnpm test && bumpp",
"pub": "npm publish --registry https://registry.npmjs.org/",
"test": "pnpm lint && vitest run --coverage",
"bench": "vitest bench"
},
Expand All @@ -40,7 +39,6 @@
"@curev/eslint-config": "^0.0.11",
"@vitest/coverage-v8": "^0.32.0",
"bumpp": "^9.1.1",
"changelogen": "^0.5.3",
"classcat": "^5.0.4",
"classnames": "^2.3.2",
"clsx": "^1.2.1",
Expand Down
170 changes: 0 additions & 170 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3b17c17

Please sign in to comment.