Skip to content

Commit 1905457

Browse files
committed
Fix publish workflow
1 parent ba90cf7 commit 1905457

1 file changed

Lines changed: 12 additions & 7 deletions

File tree

.github/workflows/publish.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: CI Publish
22

33
on:
4-
push:
5-
tags:
6-
- '*'
4+
# push:
5+
# tags:
6+
# - '*'
7+
pull_request:
8+
paths:
9+
- '.github/workflows/publish.yml'
710

811
jobs:
912
publish:
1013
runs-on: ubuntu-latest
14+
1115
steps:
1216
- uses: actions/checkout@v4
1317
- uses: pnpm/action-setup@v4
@@ -17,15 +21,16 @@ jobs:
1721
with:
1822
node-version: 18.x
1923
cache: pnpm
20-
registry-url: https://registry.npmjs.org/
24+
# This creates an .npmrc that reads the NODE_AUTH_TOKEN environment variable
25+
registry-url: 'https://registry.npmjs.org'
2126

2227
- name: Install Dependencies
23-
run: pnpm install
28+
run: pnpm install --frozen-lockfile
2429

2530
- name: Copy .md files
2631
run: cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/
2732

28-
- run: npm publish
33+
- name: pnpm publish
34+
run: pnpm publish --tag=latest --no-git-checks --filter ember-cli-mirage
2935
env:
3036
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31-
working-directory: packages/ember-cli-mirage

0 commit comments

Comments
 (0)