Skip to content

Commit 6e4be83

Browse files
committed
ci(refactor): cleaner steps
1 parent b5be32e commit 6e4be83

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,26 @@ jobs:
3939
issues: write # to be able to comment on released issues
4040
pull-requests: write # to be able to comment on released pull requests
4141
id-token: write # to enable use of OIDC for npm provenance
42+
4243
steps:
43-
- uses: actions/checkout@v4
44+
- name: ⬇️ Get latest code
45+
uses: actions/checkout@v4
4446
with:
4547
fetch-depth: 0
46-
- uses: actions/setup-node@v4
48+
49+
- name: ⬇️ Get Node.js
50+
uses: actions/setup-node@v4
4751
with:
4852
node-version: 20
4953
cache: 'npm'
50-
- run: npm i
51-
- run: npm run build
52-
- name: release
54+
55+
- name: 📦 Install dependencies
56+
run: npm i
57+
58+
- name: 🏗️ Build
59+
run: npm run build && npm run copy-files
60+
61+
- name: 🚀 Release
5362
run: cd dist/ngx-href && npx semantic-release --branches main
5463
env:
5564
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)