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:
parent
2ad2ccdc50
commit
f0737adf2c
2 changed files with 7 additions and 2 deletions
7
.github/workflows/release.yml
vendored
7
.github/workflows/release.yml
vendored
|
@ -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 }}
|
||||||
|
|
|
@ -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",
|
||||||
|
|
Loading…
Reference in a new issue