Merge pull request #39 from 21TORR/locale-release #21
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 version to npm | |
on: | |
workflow_dispatch: | |
push: | |
tags: | |
- '*' | |
jobs: | |
ci: | |
uses: "./.github/workflows/ci.yml" | |
deploy: | |
name: deploy | |
needs: [ci] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: '18' | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 'latest' | |
run_install: true | |
- name: Set version number in package.json | |
run: pnpm version from-git --no-git-tag-version | |
- name: Run Build | |
run: pnpm run prepare-release | |
- name: Publish package | |
uses: JS-DevTools/npm-publish@v3 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
package: dist |