@@ -28,6 +28,11 @@ More info can be found here:
28
28
### Setup Github Action Flow
29
29
30
30
1 . Open up your Github repo.
31
+
32
+ 2 . Go to ** Settings** . Then on the side bar, go to ** Actions** then ** General** .
33
+
34
+ 3 . Allow ** Read and write permissions** under ** Workflow permissions** .
35
+
31
36
2 . Go to ** Actions** and click on ** Set up workflow yourself** .
32
37
33
38
![ setup workflow] ( img/setup-workflow.png )
@@ -45,23 +50,24 @@ More info can be found here:
45
50
46
51
steps :
47
52
- name : Checkout
48
- uses : actions/checkout@v2
53
+ uses : actions/checkout@v3
49
54
50
- - name : Use Node.js 10 .x
51
- uses : actions/setup-node@v1
55
+ - name : Use Node.js 16 .x
56
+ uses : actions/setup-node@v3
52
57
with :
53
- node-version : 10.x
58
+ node-version : 16.x
59
+ cache : ' npm'
54
60
55
61
- name : Prepare and deploy
56
62
env :
57
63
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
58
64
run : |
59
65
npm install
60
- npm run ng -- deploy --base-href=/the-repositoryname / --name="Displayed Username" --email="[email protected] " --no-silent
66
+ npm run ng -- deploy --base-href=/the-repository-name / --name="Displayed Username" --email="[email protected] " --no-silent
61
67
` ` `
62
68
63
69
64
- 4. Make sure to replace **` /the-repositoryname /`**, **`Displayed Username`** and **`[email protected] `** with correct values in above snippet.
70
+ 4. Make sure to replace **` /the-repository-name /`**, **`Displayed Username`** and **`[email protected] `** with correct values in above snippet.
65
71
5. You can also control when your workflows are triggered :
66
72
- It can be helpful to not have your workflows run on every push to every branch in the repo.
67
73
- For example, you can have your workflow run on push events to master and release branches :
0 commit comments