From f9245f6848787c5b4b2266b2cfb377e679828c3d Mon Sep 17 00:00:00 2001 From: Emmanuel-Develops Date: Mon, 12 Aug 2024 11:55:00 +0100 Subject: [PATCH] fix: update gh envs, setup-node, and checkout actions --- .github/workflows/build-and-release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index 7756612..25c17b8 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -9,12 +9,12 @@ jobs: build-and-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Setup Node.js - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: '20' @@ -26,14 +26,14 @@ jobs: - name: Commit dist folder run: | - git config --local user.email "action@github.com" - git config --local user.name "GitHub Action" + git config --local user.email "${{ secrets.EMAIL }}" + git config --local user.name "${{ secrets.NAME }}" git add dist git commit -m "Build dist folder for release ${{ github.ref }}" || echo "No changes to commit" git push - name: Update release with dist folder env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BDP_UI_TOKEN: ${{ secrets.BDP_UI_TOKEN }} run: | gh release upload ${{ github.ref }} dist/** --clobber \ No newline at end of file