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",