diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index e1b5b73..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,65 +0,0 @@ -name: Verify - # ------------------------------------------------------------- - # This workflow will build and verify pull requests. It will: - # - Build the base branch and the PR branch - # - Compare the compiled output of the two branches - # - Run visual regression tests on the PR branch - # - Publish the PR branch for review - # ------------------------------------------------------------- - -on: - push: - branches: - - main - pull_request: - branches: - - main - types: - - opened - - synchronize - - reopened - - auto_merge_enabled - -defaults: - run: - shell: bash - -jobs: - # ------------------------------------------------------------- - # PUBLISH PR PREVIEW --- # - # ------------------------------------------------------------- - publish_site: - name: Publish preview - runs-on: ubuntu-latest - steps: - - name: Check out code - uses: actions/checkout@v4 - - - name: Use Node LTS version - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: yarn - - - name: Install dependencies - shell: bash - run: yarn install --frozen-lockfile - - - name: Build site - shell: bash - run: yarn site - - ## --- DEPLOY WEBSITE TO NETLIFY --- ## - - name: Deploy - uses: nwtgck/actions-netlify@v3 - with: - publish-dir: dist - production-branch: main - production-deploy: false - netlify-config-path: ./netlify.toml - github-token: ${{ secrets.GITHUB_TOKEN }} - deploy-message: ${{ github.event.pull_request.title }} - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN_GH_ACTIONS_DEPLOY }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }} - timeout-minutes: 10 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5b0f1fe..69f89a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,15 @@ name: Release on: + workflow_dispatch: push: branches: - main +permissions: + id-token: write + contents: write + concurrency: ${{ github.workflow }}-${{ github.ref }} defaults: @@ -23,6 +28,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: 20 + registry-url: 'https://registry.npmjs.org' cache: yarn - name: Install dependencies @@ -37,4 +43,3 @@ jobs: publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}