1.0.6 #5
Workflow file for this run
This file contains hidden or 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: Automatic release | |
| on: | |
| release: | |
| types: | |
| - published | |
| workflow_dispatch: | |
| permissions: | |
| actions: read | |
| checks: write | |
| contents: none | |
| deployments: none | |
| issues: none | |
| packages: none | |
| repository-projects: none | |
| statuses: write | |
| jobs: | |
| release: | |
| name: check version, add tag and release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| - name: setup Node | |
| uses: actions/setup-node@v4 | |
| env : | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| with: | |
| node-version: 22.x | |
| registry-url: 'https://registry.npmjs.org' | |
| scope : 'appstore-connect-jwt-generator-clie' | |
| always-auth : true | |
| - uses: pnpm/action-setup@v4 | |
| name: Install pnpm | |
| with: | |
| run_install: | | |
| - recursive: true | |
| args: [--no-frozen-lockfile] | |
| - name: Can Publish | |
| run : npx can-npm-publish --verbose | |
| env : | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Build | |
| run : pnpm build | |
| env : | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| - name: Publish | |
| run : npm publish --access=public | |
| env : | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |