diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30cf4becc..723cd2fda 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,10 +18,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v2.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: node-version: '18.x' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 548694819..4961d28c6 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,26 +11,25 @@ jobs: test-node: runs-on: ubuntu-latest - env: - VITE_MAPBOX_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN_CI }} - steps: - - uses: actions/checkout@v2.1.1 + - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Use Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 with: - node-version: '16.x' + node-version: '18.x' - name: Install dependencies run: | yarn bootstrap - name: Run tests + env: + VITE_MAPBOX_TOKEN: ${{ secrets.MAPBOX_ACCESS_TOKEN_CI }} run: | yarn test ci - name: Coveralls - uses: coverallsapp/github-action@master + uses: coverallsapp/github-action@09b709cf6a16e30b0808ba050c7a6e8a5ef13f8d # v1.2.5 with: github-token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index fd70a3eae..b88a0211d 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -23,11 +23,16 @@ jobs: deploy: runs-on: ubuntu-latest needs: check_branch + + permissions: + contents: write if: ${{ github.repository_owner == 'visgl' && needs.check_branch.outputs.should_deploy }} steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 + with: + token: ${{ secrets.WEBSITE_DEPLOY_TOKEN }} - name: Use Node.js uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65 # v4.0.0 @@ -47,7 +52,7 @@ jobs: - name: Deploy uses: JamesIves/github-pages-deploy-action@132898c54c57c7cc6b80eb3a89968de8fc283505 # 3.7.1 with: - GITHUB_TOKEN: ${{ secrets.WEBSITE_DEPLOY_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} BRANCH: gh-pages FOLDER: website/build CLEAN: true