Skip to content

Commit a3b7359

Browse files
committed
init github workflow publish
1 parent 26bdf52 commit a3b7359

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Angular Project
1+
name: Publish to GitHub Packages
22

33
on:
44
push:
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
jobs:
12-
build:
12+
publish:
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -27,8 +27,8 @@ jobs:
2727
- name: Build Angular project
2828
run: npm run build
2929

30-
- name: Upload build artifacts
31-
uses: actions/upload-artifact@v3
32-
with:
33-
name: build
34-
path: dist/
30+
- name: Publish to GitHub Packages
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
run: npm publish
34+
working-directory: ./dist/angular-serial

0 commit comments

Comments
 (0)