Skip to content

Commit

Permalink
updated github publish workflow + generated package lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
pranav-kural committed Jul 7, 2024
1 parent 8af2827 commit 7314751
Show file tree
Hide file tree
Showing 5 changed files with 19,248 additions and 7,275 deletions.
14 changes: 2 additions & 12 deletions .github/workflows/publish-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

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

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

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

- name: Set Registry
run: pnpm config set registry "https://npm.pkg.github.com"
run: npm ci

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

0 comments on commit 7314751

Please sign in to comment.