File tree 1 file changed +12
-10
lines changed 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches :
6
6
- main
7
- pull_request :
8
- branches :
9
- - main
10
7
11
8
jobs :
12
9
versioning :
13
10
runs-on : ubuntu-latest
14
11
steps :
15
12
# Checkout the code
16
13
- name : Checkout code
17
- uses : actions/checkout@v2
14
+ uses : actions/checkout@v3
18
15
19
16
# Set up Node.js environment
20
17
- name : Set up Node.js
21
18
uses : actions/setup-node@v3
22
19
with :
23
20
node-version : ' 20'
21
+ registry-url : ' https://registry.npmjs.org/'
24
22
25
- # Install dependencies
23
+ # Install all dependencies (including devDependencies for lint/test/build)
26
24
- name : Install dependencies
27
- run : yarn install --frozen-lockfile --production
25
+ run : yarn install
28
26
29
27
# Run linting
30
28
- name : Run lint
@@ -43,14 +41,18 @@ jobs:
43
41
env :
44
42
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
45
43
NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
46
- run : |
47
- yarn release
44
+ run : yarn release
48
45
49
- # Optionally, you can include a job to deploy to npm
50
46
publish :
51
- needs : release
47
+ needs : versioning
52
48
runs-on : ubuntu-latest
53
49
steps :
50
+ - name : Checkout code
51
+ uses : actions/checkout@v3
52
+
53
+ - name : Install production dependencies
54
+ run : yarn install --frozen-lockfile --production
55
+
54
56
# Publish to npm
55
57
- name : Publish to npm
56
58
run : yarn publish --non-interactive
You can’t perform that action at this time.
0 commit comments