File tree 1 file changed +9
-4
lines changed
1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2,12 +2,16 @@ name: CI Publish
2
2
3
3
on :
4
4
push :
5
+ branches :
6
+ - main
7
+ - master
5
8
tags :
6
9
- ' *'
7
10
8
11
jobs :
9
12
publish :
10
13
runs-on : ubuntu-latest
14
+
11
15
steps :
12
16
- uses : actions/checkout@v4
13
17
- uses : pnpm/action-setup@v4
@@ -17,15 +21,16 @@ jobs:
17
21
with :
18
22
node-version : 18.x
19
23
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'
21
26
22
27
- name : Install Dependencies
23
- run : pnpm install
28
+ run : pnpm install --frozen-lockfile
24
29
25
30
- name : Copy .md files
26
31
run : cp CHANGELOG.md LICENSE.md README.md packages/ember-cli-mirage/
27
32
28
- - run : npm publish
33
+ - name : pnpm publish
34
+ run : pnpm publish --tag=latest --no-git-checks --filter ember-cli-mirage
29
35
env :
30
36
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