Skip to content

Commit

Permalink
chore: semantic release (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
bisquit authored Sep 1, 2023
1 parent 20fbf80 commit 1e3c277
Show file tree
Hide file tree
Showing 5 changed files with 1,688 additions and 17 deletions.
File renamed without changes.
30 changes: 30 additions & 0 deletions .github/old/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: pnpm/action-setup@v2
with:
version: 8
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'pnpm'

- name: install
run: pnpm i

- run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
12 changes: 8 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@ name: Release

on:
push:
tags:
- 'v*'
branches:
- main
- beta

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
contents: write # to be able to publish a GitHub release
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v3
with:
Expand All @@ -25,6 +27,8 @@ jobs:
- name: install
run: pnpm i

- run: npx changelogithub
- name: release
run: pnpm semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "codew-cli",
"description": "Open folder as a vscode multi-root workspace",
"version": "0.2.0-beta.0",
"version": "0.0.0-development",
"license": "MIT",
"type": "module",
"files": [
Expand Down Expand Up @@ -47,6 +47,7 @@
"eslint": "^8.48.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"prettier": "^3.0.2",
"semantic-release": "^21.1.1",
"tsup": "^7.2.0",
"tsx": "^3.12.7",
"typescript": "^5.2.2",
Expand Down
Loading

0 comments on commit 1e3c277

Please sign in to comment.