diff options
-rw-r--r-- | .github/workflows/release.yml | 7 | ||||
-rw-r--r-- | package.json | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b1cda339..03b7689cd 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 0dbd63b96..b5d6bfb1e 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", |