diff options
author | 2021-08-05 13:39:55 -0700 | |
---|---|---|
committer | 2021-08-05 13:39:55 -0700 | |
commit | f0737adf2c1e1f084ef6cbaa905331f2f39e108e (patch) | |
tree | 04db0db56aa5a62e49a211c9cc984b79fcc7553b | |
parent | 2ad2ccdc50478bd142bed564c66aa44587b88cc2 (diff) | |
download | astro-f0737adf2c1e1f084ef6cbaa905331f2f39e108e.tar.gz astro-f0737adf2c1e1f084ef6cbaa905331f2f39e108e.tar.zst astro-f0737adf2c1e1f084ef6cbaa905331f2f39e108e.zip |
update release CI script to publish (#1034)
-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", |