Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Create release

Create release #13

name: 'Create release'
on:
workflow_dispatch:
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- 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 }}