From bdb7b9a2a91ea3824bcfd4d2266417447b84fc6e Mon Sep 17 00:00:00 2001 From: bjoluc Date: Tue, 8 Feb 2022 18:28:15 +0100 Subject: [PATCH] Make the release workflow update all unpkg links Closes #2348 --- .github/workflows/release.yml | 8 +++----- package.json | 3 ++- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac5a639a..49eac7de 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,7 @@ jobs: cache: npm - name: Install dependencies - run: npm install + run: npm ci - name: Download Turborepo cache uses: actions/cache@v2 @@ -35,9 +35,6 @@ jobs: restore-keys: | ${{ runner.os }}-node-16-turbo- - - name: Build packages - run: npm run build - - name: Run tests run: npm run test -- --ci --maxWorkers=2 env: @@ -47,7 +44,8 @@ jobs: id: changesets uses: changesets/action@v1 with: - publish: npm run release + version: npm run changeset:version + publish: npm run changeset:publish commit: "chore(release): version packages" env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index a2d836e3..a31388c6 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,8 @@ "prepare": "node -e 'process.exit(!process.env.CI)' || (husky install && npm run build)", "tsc": "turbo tsc", "changeset": "changeset", - "release": "changeset publish" + "changeset:version": "changeset version && npm install && npm run update-unpkg-links", + "changeset:publish": "npm run build && changeset publish" }, "engines": { "node": ">=14.0.0",