Merge pull request #15 from humanitec/changeset-release/main #24
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: Publish Build | |
on: | |
push: | |
branches: [main] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
env: | |
NODE_OPTIONS: --max-old-space-size=4096 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
- run: yarn install --frozen-lockfile | |
- run: yarn tsc | |
- run: yarn build:all | |
- run: ./scripts/build-dynamic-plugins.sh | |
- name: Create Release Pull Request or Publish to npm | |
id: changesets | |
uses: changesets/action@v1 | |
with: | |
title: Version Packages - plugins | |
version: yarn release:version | |
publish: yarn release:publish | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Upload dynamic plugin to release | |
run: ./scripts/upload-dynamic-plugins.js '${{ steps.changesets.outputs.publishedPackages }}' | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |