From a4bcd83d0635c0ca7084193fb1836615d89d562d Mon Sep 17 00:00:00 2001 From: Nate Date: Sat, 5 Apr 2025 20:30:15 -0700 Subject: [PATCH] semantic release for config-yaml --- .github/workflows/release-config-yaml.yml | 46 +++++++++++++++++++++++ packages/config-yaml/release.config.js | 9 +++++ 2 files changed, 55 insertions(+) create mode 100644 .github/workflows/release-config-yaml.yml create mode 100644 packages/config-yaml/release.config.js diff --git a/.github/workflows/release-config-yaml.yml b/.github/workflows/release-config-yaml.yml new file mode 100644 index 000000000..0847f5c0c --- /dev/null +++ b/.github/workflows/release-config-yaml.yml @@ -0,0 +1,46 @@ +name: Release @continuedev/config-yaml + +on: + push: + branches: + - main + paths: + - "packages/config-yaml/**" + +jobs: + release: + name: Release + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Use Node.js from .nvmrc + uses: actions/setup-node@v4 + with: + node-version-file: ".nvmrc" + + - name: Install dependencies + run: | + cd packages/config-yaml + npm ci + + - name: Build + run: | + cd packages/config-yaml + npm run build + + - name: Run tests + run: | + cd packages/config-yaml + npm test + + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: | + cd packages/config-yaml + npx semantic-release diff --git a/packages/config-yaml/release.config.js b/packages/config-yaml/release.config.js new file mode 100644 index 000000000..6f8c41a66 --- /dev/null +++ b/packages/config-yaml/release.config.js @@ -0,0 +1,9 @@ +export default { + branches: ['main'], + plugins: [ + '@semantic-release/commit-analyzer', + '@semantic-release/release-notes-generator', + '@semantic-release/npm', + '@semantic-release/github', + ], +} \ No newline at end of file