Skip to content

Commit bdbc704

Browse files
committed
Fix publish workflow
1 parent ba90cf7 commit bdbc704

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/publish.yml

+9-4
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@ name: CI Publish
22

33
on:
44
push:
5+
branches:
6+
- main
7+
- master
58
tags:
69
- '*'
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)