|
|
@@ -63,47 +63,36 @@ jobs:
|
|
|
- name: Ensure working directory is clean
|
|
|
run: test -z "$(git status --porcelain)"
|
|
|
|
|
|
- # release:
|
|
|
- # name: Release
|
|
|
- # runs-on: ubuntu-latest
|
|
|
- # if: github.event_name == 'push'
|
|
|
- # needs: [lint, tests]
|
|
|
- # outputs:
|
|
|
- # published: ${{ steps.changesets.outputs.published }}
|
|
|
- # steps:
|
|
|
- # - name: Checkout Repo
|
|
|
- # uses: actions/checkout@v4
|
|
|
-
|
|
|
- # - name: Setup pnpm
|
|
|
- # uses: pnpm/action-setup@v3
|
|
|
-
|
|
|
- # - name: Setup Node.js
|
|
|
- # uses: actions/setup-node@v4
|
|
|
- # with:
|
|
|
- # node-version: ${{ env.NODE_VERSION }}
|
|
|
- # cache: 'pnpm'
|
|
|
-
|
|
|
- # - name: Install Dependencies
|
|
|
- # run: pnpm install --frozen-lockfile
|
|
|
-
|
|
|
- # - name: Get Build Version
|
|
|
- # run: |
|
|
|
- # pnpm packages:version
|
|
|
- # echo "BUILD_VERSION=$(./configs/get-latest-version.sh)" | tee $GITHUB_ENV
|
|
|
- # git reset --hard && git clean -df
|
|
|
- # env:
|
|
|
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
-
|
|
|
- # - name: Create Release Pull Request or Publish
|
|
|
- # id: changesets
|
|
|
- # uses: lorisleiva/changesets-action@main
|
|
|
- # with:
|
|
|
- # commit: 'Release packages'
|
|
|
- # title: 'Release packages'
|
|
|
- # publish: pnpm packages:publish
|
|
|
- # createGithubReleases: 'aggregate'
|
|
|
- # githubReleaseName: v${{ env.BUILD_VERSION }}
|
|
|
- # githubTagName: v${{ env.BUILD_VERSION }}
|
|
|
- # env:
|
|
|
- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
- # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
+ release:
|
|
|
+ name: Release
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ if: github.event_name == 'push'
|
|
|
+ needs: [lint, tests]
|
|
|
+ outputs:
|
|
|
+ published: ${{ steps.changesets.outputs.published }}
|
|
|
+ steps:
|
|
|
+ - name: Checkout Repo
|
|
|
+ uses: actions/checkout@v4
|
|
|
+
|
|
|
+ - name: Setup pnpm
|
|
|
+ uses: pnpm/action-setup@v3
|
|
|
+
|
|
|
+ - name: Setup Node.js
|
|
|
+ uses: actions/setup-node@v4
|
|
|
+ with:
|
|
|
+ node-version: ${{ env.NODE_VERSION }}
|
|
|
+ cache: 'pnpm'
|
|
|
+
|
|
|
+ - name: Install Dependencies
|
|
|
+ run: pnpm install --frozen-lockfile
|
|
|
+
|
|
|
+ - name: Create Release Pull Request or Publish
|
|
|
+ id: changesets
|
|
|
+ uses: lorisleiva/changesets-action@main
|
|
|
+ with:
|
|
|
+ commit: 'Publish packages'
|
|
|
+ title: 'Publish packages'
|
|
|
+ publish: ./node_modules/.bin/changeset publish
|
|
|
+ env:
|
|
|
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
+ NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|