Skip to content

Commit 85a02a0

Browse files
committed
CI: Add token to checkout
1 parent 1d80f12 commit 85a02a0

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/netlify-deploy-release.yml

+16-10
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,11 @@ jobs:
1414
- uses: actions/checkout@master
1515
with:
1616
ref: 'refs/heads/main'
17+
token: ${{ secrets.ACTION_GITHUB_BOT }}
1718

18-
- name: Setup node
19-
uses: actions/setup-node@v2
20-
with:
21-
cache: 'yarn'
22-
23-
- name: Install dependencies
24-
run: yarn
19+
##################
20+
# Version upping #
21+
##################
2522

2623
# Note: it's important that this is being run before the version is upped
2724
# because a commit will be created during the process
@@ -34,12 +31,21 @@ jobs:
3431
- name: Up version
3532
run: yarn version --new-version ${{ github.event.release.tag_name }}
3633

37-
- name: Set remote url with github token
38-
run: git remote set-url origin https://${{ secrets.ACTION_GITHUB_BOT }}@github.com/on3iro/aeons-end-randomizer
39-
4034
- name: Push version commit
4135
run: git push origin main
4236

37+
##############
38+
# Publishing #
39+
##############
40+
41+
- name: Setup node
42+
uses: actions/setup-node@v2
43+
with:
44+
cache: 'yarn'
45+
46+
- name: Install dependencies
47+
run: yarn
48+
4349
- name: Build app
4450
run: yarn build
4551

0 commit comments

Comments
 (0)