From f0737adf2c1e1f084ef6cbaa905331f2f39e108e Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 5 Aug 2021 13:39:55 -0700 Subject: [PATCH] update release CI script to publish (#1034) --- .github/workflows/release.yml | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b1cda3395..03b7689cdc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,12 @@ jobs: env: CI: true - - name: Create release PR + - name: Create Release Pull Request or Publish to npm + id: changesets uses: changesets/action@master + with: + # This expects you to have a script called release which does a build for your packages and calls changeset publish + publish: yarn release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 0dbd63b96d..b5d6bfb1e9 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "url": "https://github.com/snowpackjs/astro.git" }, "scripts": { - "release": "yarn build:all && npx changeset publish", + "release": "yarn build:all && changeset publish", "benchmark": "yarn workspace astro run benchmark", "build": "yarn build:core", "build:one": "lerna run build --scope",