Skip to content

Commit

Permalink
Try checkout@v3 and gh cli login
Browse files Browse the repository at this point in the history
  • Loading branch information
narin committed Nov 27, 2023
1 parent 346cec5 commit f4e66c1
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,15 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_KEY }}
steps:
- uses: actions/checkout@v4
- name: 'Checkout repo'
uses: actions/checkout@v3
with:
fetch-depth: 0
token: ${{ secrets.VA_MOBILE_ROBOT_GITHUB_PAT }}
- name: 'Set up GH CLI secret'
run: echo "${{secrets.GH_ACTIONS_PAT}}" >> token.txt
- name: 'Log into GH CLI'
run: gh auth login --with-token < token.txt
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
Expand Down Expand Up @@ -78,6 +84,8 @@ jobs:
run: |
git config --global user.name 'VA Automation Bot'
git config --global user.email '[email protected]'
git config user.name
git config user.email
git pull
git add package.json
git commit -m 'Version bump: ${{ steps.bump-version.outputs.GIT_TAG }}'
Expand Down

0 comments on commit f4e66c1

Please sign in to comment.