2.4.0 #31
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
publish: | |
name: Publish | |
if: github.repository_owner == 'coajs' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 12 | |
registry-url: https://registry.npmjs.org | |
- name: Yarn | |
run: | | |
yarn | |
- name: Lint | |
run: | | |
yarn lint | |
- name: Build | |
run: | | |
yarn version --no-git-tag-version --new-version ${{ github.event.release.tag_name }} | |
yarn build | |
- name: Publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.AEX_NPM_TOKEN }} | |
run: | | |
yarn publish dist | |
- name: Sync | |
run: | | |
sleep 5s | |
yarn sync |