diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 31daf6b8..2f940b9b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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: @@ -78,6 +84,8 @@ jobs: run: | git config --global user.name 'VA Automation Bot' git config --global user.email 'va-mobileapp@adhocteam.us' + 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 }}'