Skip to content

Commit

Permalink
chore(ci): update release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
KeJunMao committed Sep 5, 2023
1 parent b1589af commit e63eba2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
21 changes: 17 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,30 @@ on:
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: actions/setup-node@v3
- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
with:
node-version: lts/*
node-version: 16.x
cache: pnpm
registry-url: "https://registry.npmjs.org"

Check failure on line 24 in .github/workflows/release.yml

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

- run: npx changelogithub
continue-on-error: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Install Dependencies
run: pnpm i

- name: Publish to NPM
run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@
"lint": "eslint .",
"play": "npm -C playground run dev",
"prepublishOnly": "npm run build",
"release": "bumpp && npm publish",
"release": "bumpp",
"start": "esno src/index.ts",
"test": "vitest"
},
Expand Down

0 comments on commit e63eba2

Please sign in to comment.