@@ -10,46 +10,54 @@ concurrency:
10
10
cancel-in-progress : true
11
11
12
12
jobs :
13
- build :
14
- runs-on : ubuntu-latest
15
- steps :
16
- - uses : actions/checkout@v4
17
- - uses : actions/setup-node@v3
18
- with :
19
- node-version : 20
20
- cache : ' npm'
21
- - run : npm i
22
- # - name: lint
23
- # run: npm run lint
24
- # - run: npm run build
25
- # - name: Run test
26
- # run: npm run test:ci
27
- # - name: Upload coverage reports to Codecov
28
-
29
- # with:
30
- # token: ${{ secrets.CODECOV_TOKEN }}
31
- # slug: rbalet/ngx-back-button
13
+ # build:
14
+ # runs-on: ubuntu-latest
15
+ # steps:
16
+ # - uses: actions/checkout@v4
17
+ # - uses: actions/setup-node@v3
18
+ # with:
19
+ # node-version: 20
20
+ # cache: 'npm'
21
+ # - run: npm i
22
+ # - name: lint
23
+ # run: npm run lint
24
+ # - run: npm run build
25
+ # - name: Run test
26
+ # run: npm run test:ci
27
+ # - name: Upload coverage reports to Codecov
28
+
29
+ # with:
30
+ # token: ${{ secrets.CODECOV_TOKEN }}
31
+ # slug: rbalet/ngx-back-button
32
32
33
33
publish :
34
- needs : build
34
+ # needs: build
35
35
runs-on : ubuntu-latest
36
36
if : github.ref_name == 'main'
37
37
permissions :
38
38
contents : write # to be able to publish a GitHub release
39
39
issues : write # to be able to comment on released issues
40
40
pull-requests : write # to be able to comment on released pull requests
41
41
id-token : write # to enable use of OIDC for npm provenance
42
+
42
43
steps :
43
- - uses : actions/checkout@v4
44
+ - name : ⬇️ Get latest code
45
+ uses : actions/checkout@v4
44
46
with :
45
47
fetch-depth : 0
46
- - uses : actions/setup-node@v3
48
+
49
+ - name : ⬇️ Get Node.js
50
+ uses : actions/setup-node@v4
47
51
with :
48
52
node-version : 20
49
53
cache : ' npm'
50
- - run : npm i
51
- - run : npm run build
52
- - name : release
54
+
55
+ - name : 📦 Install dependencies
56
+ run : npm i
57
+ - name : 🏗️ Build
58
+ run : npm run build && npm run copy-files
59
+
60
+ - name : 🚀 release
53
61
run : cd dist/ngx-back-button && npx semantic-release --branches main
54
62
env :
55
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments