chore: cleanup issue template (#1684) #314
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 | |
on: | |
push: | |
branches: | |
- develop | |
- master | |
jobs: | |
tests: | |
uses: ./.github/workflows/tests.yml | |
publish: | |
if: github.ref == 'refs/heads/master' | |
needs: [tests] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'master' | |
- uses: ./.github/actions/dependencies | |
with: | |
root: false | |
packages-react: true | |
packages-styles: true | |
- name: Build packages | |
run: | | |
NODE_ENV=production yarn --cwd packages/react build | |
NODE_ENV=production yarn --cwd packages/styles build | |
- name: Publish @deque/cauldron-styles | |
run: | | |
cd packages/styles | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Publish @deque/cauldron-react | |
run: | | |
cd packages/react | |
npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
canary: | |
if: github.ref == 'refs/heads/develop' | |
needs: [tests] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: 'develop' | |
- uses: ./.github/actions/dependencies | |
with: | |
root: false | |
packages-react: true | |
packages-styles: true | |
- name: Build packages | |
run: | | |
NODE_ENV=production yarn --cwd packages/react build | |
NODE_ENV=production yarn --cwd packages/styles build | |
- name: Publish @deque/cauldron-styles | |
run: | | |
cd packages/styles | |
PACKAGE_VERSION="$(npm pkg get version | tr -d \")" | |
npm version "$PACKAGE_VERSION-canary.${GITHUB_SHA:0:8}" --allow-same-version --no-git-tag-version | |
npm publish --tag=next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | |
- name: Publish @deque/cauldron-react | |
run: | | |
cd packages/react | |
PACKAGE_VERSION="$(npm pkg get version | tr -d \")" | |
npm version "$PACKAGE_VERSION-canary.${GITHUB_SHA:0:8}" --allow-same-version --no-git-tag-version | |
npm publish --tag=next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |