This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Create release #16
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: 'Create release' | |
on: | |
workflow_dispatch: | |
jobs: | |
create-release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_BUILD }} | |
- name: git config | |
run: | | |
git config user.name "github-action" | |
git config user.email "[email protected]" | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
cache: yarn | |
- run: yarn | |
- run: yarn lint | |
- run: yarn test | |
- run: yarn build | |
# - run: npm run generateDocs | |
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # Add npm publish token to .npmrc | |
- run: npm run release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |