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:
13
.github/workflows/test.yml
vendored
13
.github/workflows/test.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user