chore(release): 0.2.0 #5
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
on: | |
push: | |
tags: | |
- 'v*' | |
name: Publish | |
jobs: | |
publish: | |
name: Publish to npm | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '16' | |
- name: Publish | |
run: | | |
npm config set //registry.npmjs.org/:_authToken ${NPM_PUBLISH_TOKEN} | |
yarn install --immutable | |
cd ./cli && yarn install --immutable && cd .. | |
cd ./ui && yarn install --immutable && cd .. | |
yarn build | |
npm publish | |
env: | |
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
CI: false # Setting to false. Will change to true when linting is fully setup | |
create-github-release: | |
name: Create GitHub Release | |
runs-on: ubuntu-latest | |
needs: publish | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Create Release Notes | |
uses: actions/github-script@v4.0.2 | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
script: | | |
await github.request(`POST /repos/${{ github.repository }}/releases`, { | |
tag_name: "${{ github.ref }}", | |
generate_release_notes: true | |
}); |