Merge pull request #21 from vivid-planet/add-target-group-to-email-ca… #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release Canary | |
on: | |
push: | |
branches: | |
- main | |
- next | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
release-canary: | |
name: Release Canary | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: "https://registry.npmjs.org" | |
cache: "pnpm" # https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#caching-packages-dependencies | |
- name: Install Dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Copy schema files | |
run: pnpm run copy-schema-files | |
- name: Publish Canary release | |
if: ${{ github.ref_name == 'main' }} | |
run: | | |
echo --- > .changeset/canary.md | |
echo '"@comet/brevo-admin": patch' >> .changeset/canary.md | |
echo --- >> .changeset/canary.md | |
echo >> .changeset/canary.md | |
echo fake change to always get a canary release >> .changeset/canary.md | |
pnpm exec changeset version --snapshot canary | |
pnpm run publish --tag canary --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Publish Canary release | |
if: ${{ github.ref_name == 'next' }} | |
run: | | |
echo --- > .changeset/canary.md | |
echo '"@comet/brevo-admin": major' >> .changeset/canary.md | |
echo --- >> .changeset/canary.md | |
echo >> .changeset/canary.md | |
echo fake change to always get a canary release >> .changeset/canary.md | |
pnpm exec changeset version --snapshot canary | |
pnpm run publish --tag next-canary --no-git-checks | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |