Skip to content

Commit

Permalink
Update publish-github.yml to use PNPM
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural authored Jul 7, 2024
1 parent 4a6de70 commit fe73d25
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,33 @@ on:
release:
types: [published]
jobs:
build:
release:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
- uses: actions/checkout@v4

- uses: pnpm/action-setup@4
name: Install pnpm
with:
version: 9
run_install: false

# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
scope: "@oconva"
- run: npm ci
- run: npm publish
cache: pnpm

- name: Install dependencies
- run: pnpm install --frozen-lockfile

- name: Publish 🚀
- run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit fe73d25

Please sign in to comment.