Skip to content

Commit

Permalink
fix: gh action publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pabl-o-ce committed May 16, 2024
1 parent 87d5b2d commit d3e518a
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions .github/workflows/svelte-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,13 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org/'
- uses: pnpm/action-setup@v2
id: pnpm-install
- uses: pnpm/action-setup@v3
with:
version: 9
run_install: false
- name: Get PNPM Store Directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- name: Setup PNPM Cache
uses: actions/cache@v3
- uses: actions/setup-node@v4
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
node-version: lts/*
registry-url: https://registry.npmjs.org
- name: Install dependencies
run: pnpm install --no-frozen-lockfile
- name: Build
Expand All @@ -63,4 +49,3 @@ jobs:
run: pnpm publish --tag latest --access=public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit d3e518a

Please sign in to comment.