Skip to content

Commit

Permalink
Update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
icodesign committed Jul 21, 2024
1 parent 9e26468 commit 37bd601
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
name: Release Package
on:
workflow_dispatch:
secrets:
NPM_TOKEN:
required: true
push:
branches:
- main

env:
CI: true
PNPM_CACHE_FOLDER: .pnpm-store

jobs:
version:
release:
timeout-minutes: 15
runs-on: ubuntu-latest
steps:
Expand All @@ -18,20 +17,21 @@ jobs:
with:
fetch-depth: 0

- name: Setup node.js
uses: actions/setup-node@v3
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: 18
version: 8
run_install: false

- name: install pnpm
run: npm i pnpm@latest -g
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'

- name: Setup npmrc
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: Setup pnpm config
run: pnpm config set store-dir $PNPM_CACHE_FOLDER

- name: Install dependencies
run: pnpm install

Expand Down

0 comments on commit 37bd601

Please sign in to comment.