Skip to content

fix(workflow): move pnpm action setup step for clarity #49

fix(workflow): move pnpm action setup step for clarity

fix(workflow): move pnpm action setup step for clarity #49

Workflow file for this run

name: Release
on:
push:
branches: [master, develop]
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 10
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: https://registry.npmjs.org/
scope: "@smakss"
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Release (master)
if: github.ref_name == 'master'
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release dry run (develop)
if: github.ref_name == 'develop'
run: pnpm release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}