Skip to content

Commit

Permalink
fix :: gitaction
Browse files Browse the repository at this point in the history
  • Loading branch information
ftery0 committed Jan 16, 2025
1 parent b423491 commit 8cc2647
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,23 @@ jobs:
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-node-
${{ runner.os }}-pnpm-store-
- name: Install dependencies
run: pnpm install
run: pnpm install --frozen-lockfile

- name: Build the project
run: pnpm run rollup
run: pnpm run rollup

- name: Disable Husky (Optional)
run: npx husky disable

- name: Publish to NPM
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
pnpm publish dist --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 8cc2647

Please sign in to comment.