Skip to content

Commit

Permalink
ci: automate publish
Browse files Browse the repository at this point in the history
  • Loading branch information
vipero07 committed Dec 7, 2023
1 parent ddf62bf commit 1ea63db
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: 8.7.1
- uses: actions/setup-node@v3
with:
node-version: '20.x'
node-version: 18
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: pnpm publish
Expand All @@ -25,10 +30,16 @@ jobs:
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to GitHub Packages
- name: Setup PNPM
uses: pnpm/[email protected]
with:
version: 8.7.1
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
node-version: 18
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
registry-url: 'https://registry.npmjs.org'
- run: pnpm i --frozen-lockfile
- run: pnpm publish
env:
Expand Down

0 comments on commit 1ea63db

Please sign in to comment.