Skip to content

Commit

Permalink
chore(release): adopt "@ossjs/release" (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
kettanaito committed May 11, 2022
1 parent 0185ae8 commit 4ba361b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,15 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
token: ${{ secrets.GH_ADMIN_TOKEN }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Release
uses: cycjimmy/semantic-release-action@v2
run: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions ossjs.release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
script: 'yarn publish --new-version $RELEASE_VERSION',
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"test:ts": "tsc -p test/tsconfig.test-d.json",
"clean": "rimraf ./lib",
"build": "yarn clean && tsc",
"release": "release publish",
"prepare": "yarn simple-git-hooks init",
"prepublishOnly": "yarn build && yarn test:ts && yarn test"
},
Expand Down
3 changes: 0 additions & 3 deletions release.config.js

This file was deleted.

0 comments on commit 4ba361b

Please sign in to comment.