File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,12 +2,16 @@ name: CI Publish
22
33on :
44 push :
5+ branches :
6+ - main
7+ - master
58 tags :
69 - ' *'
710
811jobs :
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
You can’t perform that action at this time.
0 commit comments