diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7012957..7726d81 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,48 +1,50 @@ -name: Release - -on: - push: - branches: - - main - -permissions: - id-token: write # Required for OIDC - contents: read - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: 20 - cache: yarn - - # Ensure npm 11.5.1 or later is installed - - name: Update npm - run: npm install -g npm@latest - shell: bash - - - name: Install Dependencies - run: yarn install --immutable - shell: bash - - - name: Create Release Pull Request or Publish to npm - id: changesets - uses: changesets/action@v1 - with: - version: yarn run version - commit: "chore: version packages" - title: "chore: version packages" - publish: yarn release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# Uncomment when Changesets starts supporting only publish to NPM without pushing changes back to repo + +# name: Release + +# on: +# push: +# branches: +# - main + +# permissions: +# id-token: write # Required for OIDC +# contents: read + +# concurrency: ${{ github.workflow }}-${{ github.ref }} + +# jobs: +# release: +# name: Release +# runs-on: ubuntu-latest +# steps: +# - name: Checkout Repo +# uses: actions/checkout@v4 +# with: +# fetch-depth: 0 + +# - name: Setup Node.js +# uses: actions/setup-node@v4 +# with: +# node-version: 20 +# cache: yarn + +# # Ensure npm 11.5.1 or later is installed +# - name: Update npm +# run: npm install -g npm@latest +# shell: bash + +# - name: Install Dependencies +# run: yarn install --immutable +# shell: bash + +# - name: Create Release Pull Request or Publish to npm +# id: changesets +# uses: changesets/action@v1 +# with: +# version: yarn run version +# commit: "chore: version packages" +# title: "chore: version packages" +# publish: yarn release +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}