Introduce the semantic release (#234)

* build: update metadata

* ci: introduce setup-node to use specific node version

* ci: introduce semantic-release

* chore: update dist files

* ci: fix the format of Actions
This commit is contained in:
Kengo TODA authored and GitHub committed 2021-07-16 17:22:55 +08:00
1 parent 2e8c43235f
commit 74676fbfa6
5 files changed
+4530 -22

No files matched your search

+13
View File
@@ -11,9 +11,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .nvmrc
run: echo ::set-output name=NVMRC::$(cat .nvmrc)
id: nvm
- uses: actions/setup-node@v2
with:
cache: npm
node-version: ${{ steps.nvm.outputs.NVMRC }}
- run: |
npm ci
npm run all
- name: Run semantic-release
run: |
npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
steps: