docs: add example package to show usage (#29) #25
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 npm package | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- uses: pnpm/action-setup@v2 | |
- run: pnpm install --frozen-lockfile | |
- run: pnpm build | |
- run: pnpm test | |
- run: npx semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN_SEMANTIC_RELEASE }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |