Skip to content

Commit bdaef94

Browse files
authored
chore: Use new secrets in CI (#598)
1 parent 5cb0bea commit bdaef94

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/publish-theme.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v3
3838
with:
39-
token: ${{ secrets.GH_TOKEN }}
39+
token: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
4040

4141
- name: Use Node.js 16
4242
uses: actions/setup-node@v3
@@ -49,7 +49,7 @@ jobs:
4949
git config --global user.email "noreply@apify.com"
5050
5151
echo "access=public" > .npmrc
52-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc
52+
echo "//registry.npmjs.org/:_authToken=${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}" >> .npmrc
5353
5454
- name: Bump the theme version
5555
run: |
@@ -61,9 +61,9 @@ jobs:
6161
cd $GITHUB_WORKSPACE/apify-docs-theme
6262
npx -y publish-if-not-exists
6363
env:
64-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
65-
GIT_USER: "barjin:${{ secrets.GH_TOKEN }}"
66-
GH_TOKEN: ${{ secrets.GH_TOKEN }}
64+
NPM_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_NPM_TOKEN }}
65+
GIT_USER: "barjin:${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}"
66+
GH_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
6767

6868
- name: Wait until the new theme version is available on npm
6969
run: |
@@ -112,6 +112,6 @@ jobs:
112112
runs-on: ubuntu-latest
113113
steps:
114114
- env:
115-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
115+
GITHUB_TOKEN: ${{ secrets.APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN }}
116116
run: |
117117
gh workflow run docs.yaml --repo ${{ matrix.repo }} --ref ${{ matrix.branch }}

0 commit comments

Comments
 (0)