Skip to content

Commit c2aabd3

Browse files
authored
fix: publish workflow to use pnpm and add tag
Updated the publish workflow to use pnpm for package installation and modified the npm publish command to include a tag
1 parent 57de58d commit c2aabd3

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

.github/workflows/publish.yaml

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,12 @@ jobs:
1717
with:
1818
node-version: 22
1919
registry-url: 'https://registry.npmjs.org'
20+
cache: pnpm
21+
cache-dependency-path: pnpm-lock.yaml
2022

2123
- run: corepack enable
22-
- run: npm i -g npm@latest
23-
24-
- uses: pnpm/action-setup@v4.0.0
25-
with:
26-
version: 9.15.3
27-
28-
- uses: actions/cache@v4
29-
id: pnpm-cache
30-
with:
31-
path: |
32-
**/node_modules
33-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
34-
restore-keys: |
35-
${{ runner.os }}-pnpm-
36-
37-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
38-
run: pnpm install
24+
# - run: npm i -g npm@latest
25+
- run: pnpm install --frozen-lockfile
3926

4027
- run: pnpm run lint
4128
- run: pnpm run test
@@ -54,7 +41,7 @@ jobs:
5441
- run: |
5542
cp ./README.md ./packages/text-vide/README.md &&
5643
cd ./packages/text-vide &&
57-
npm publish
44+
npm publish --tag oidc
5845
5946
- name: Print npm debug log on failure
6047
if: failure()

0 commit comments

Comments
 (0)