From dc4be6c61849d5671b8ccff279fa8f73c4852327 Mon Sep 17 00:00:00 2001 From: Drew Powers <1369770+drwpow@users.noreply.github.com> Date: Tue, 21 Sep 2021 14:12:51 -0600 Subject: [PATCH] Automate publish on merge (#1408) --- .github/workflows/release-next.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/release-next.yml diff --git a/.github/workflows/release-next.yml b/.github/workflows/release-next.yml new file mode 100644 index 000000000..59d04d57e --- /dev/null +++ b/.github/workflows/release-next.yml @@ -0,0 +1,22 @@ +name: release astro@next--compiler + +on: + push: + branches: + - next + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: 16.x + - run: yarn + - # 1. create new snapshot version + run: yarn changeset version --snapshot compiler + - # 2. discard examples/docs/www changes (just in case) + run: git checkout -- examples/ docs/ www/ + - # 3: publish! + run: yarn release --tag next--compiler