Merge pull request #264 from aws-amplify/chore/upgrade-node-to-20 #162
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: publish | |
| on: | |
| push: | |
| branches: | |
| - release | |
| - main | |
| - geo | |
| - next-geo | |
| jobs: | |
| e2e: | |
| secrets: inherit | |
| uses: ./.github/workflows/callable-e2e-tests.yml | |
| publish: | |
| name: Publish | |
| runs-on: ubuntu-latest | |
| needs: [e2e] | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 https://github.com/actions/checkout/commit/11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Use Node.js 20 x64 | |
| uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0 https://github.com/actions/setup-node/commit/cdca7365b2dadb8aad0a33bc7601856ffabcc48e | |
| with: | |
| node-version: 20 | |
| architecture: x64 | |
| registry-url: 'https://registry.npmjs.org' | |
| - name: Install build dependencies | |
| run: | | |
| yarn | |
| - name: Semantic Release | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: | | |
| yarn semantic-release |