From 214e1c27a14f39dae94e3924d9a5c986349a9025 Mon Sep 17 00:00:00 2001 From: yivlad Date: Mon, 4 Sep 2023 17:40:40 +0200 Subject: [PATCH] WIP --- .github/workflows/release.yml | 41 +++-------------------------------- 1 file changed, 3 insertions(+), 38 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 12d7085e0..b21839ff6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,48 +28,13 @@ jobs: - name: Install package manager run: npm i -g pnpm@7.1.9 + - name: Install Dependencies + run: pnpm install --no-frozen-lockfile + - name: Print git status run: git status - - name: Install Dependencies - run: pnpm install --frozen-lockfile - - name: Set git user run: | git config user.name truefibot git config user.email truebot.github@trusttoken.com - - - name: Create Release Pull Request or Publish to npm - id: changesets - uses: changesets/action@v1 - with: - # This expects you to have a script called release which does a build for your packages and calls changeset publish - publish: pnpm run release - version: pnpm run version - commit: "🎉 Release new version" - title: "🎉 Release new version" - setupGitUser: false - env: - GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Deploy usedapp-docs.netlify.app - uses: nwtgck/actions-netlify@v1.2 - if: steps.changesets.outputs.published == 'true' - with: - enable-commit-comment: true - enable-pull-request-comment: true - github-token: ${{ secrets.GITHUB_TOKEN }} - overwrites-pull-request-comment: true - production-deploy: ${{ github.event_name != 'pull_request' }} - publish-dir: packages/docs/build - env: - NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }} - NETLIFY_SITE_ID: ${{ secrets.NETLIFY_DOCS_SITE_ID }} - - - name: Publish dev version to npm - run: | - echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc - pnpm -r --filter "@usedapp/*" exec ${PWD}/scripts/dev-version.sh - pnpm run build - pnpm -r publish --no-git-checks