Skip to content

Commit 494efe1

Browse files
authored
Update README_environment_github_actions.md (#170)
- Update actions version and node version for the .yml section. - Add few more steps in GitHub Action Flow.
1 parent 8d48ef5 commit 494efe1

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

docs/README_environment_github_actions.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ More info can be found here:
2828
### Setup Github Action Flow
2929

3030
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+
3136
2. Go to **Actions** and click on **Set up workflow yourself**.
3237

3338
![setup workflow](img/setup-workflow.png)
@@ -45,23 +50,24 @@ More info can be found here:
4550

4651
steps:
4752
- name: Checkout
48-
uses: actions/checkout@v2
53+
uses: actions/checkout@v3
4954

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
5257
with:
53-
node-version: 10.x
58+
node-version: 16.x
59+
cache: 'npm'
5460

5561
- name: Prepare and deploy
5662
env:
5763
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5864
run: |
5965
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
6167
```
6268
6369
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.
6571
5. You can also control when your workflows are triggered:
6672
- It can be helpful to not have your workflows run on every push to every branch in the repo.
6773
- For example, you can have your workflow run on push events to master and release branches:

0 commit comments

Comments
 (0)