0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-30 22:03:56 -05:00

update release CI script to publish (#1034)

This commit is contained in:
Fred K. Schott 2021-08-05 13:39:55 -07:00 committed by GitHub
parent 2ad2ccdc50
commit f0737adf2c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View file

@ -25,7 +25,12 @@ jobs:
env: env:
CI: true CI: true
- name: Create release PR - name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@master 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: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

View file

@ -7,7 +7,7 @@
"url": "https://github.com/snowpackjs/astro.git" "url": "https://github.com/snowpackjs/astro.git"
}, },
"scripts": { "scripts": {
"release": "yarn build:all && npx changeset publish", "release": "yarn build:all && changeset publish",
"benchmark": "yarn workspace astro run benchmark", "benchmark": "yarn workspace astro run benchmark",
"build": "yarn build:core", "build": "yarn build:core",
"build:one": "lerna run build --scope", "build:one": "lerna run build --scope",