diff --git a/.github/workflows/deploy-dev.yml b/.github/workflows/deploy-dev.yml index c71d93b0..9cacdec1 100644 --- a/.github/workflows/deploy-dev.yml +++ b/.github/workflows/deploy-dev.yml @@ -64,6 +64,12 @@ jobs: push: true tags: greenstand/${{ github.event.repository.name }}-dev:${{ steps.package-version.outputs.current-version }} + - name: Release + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release + - id: export_bumped_version run: | export BUMPED_VERSION="${{ steps.package-version.outputs.current-version }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 5a380a62..00000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,36 +0,0 @@ -name: Release -on: - push: - branches: - - main - -permissions: - contents: read # for checkout - -jobs: - release: - name: Release - runs-on: ubuntu-latest - permissions: - contents: write # to be able to publish a GitHub release - issues: write # to be able to comment on released issues - pull-requests: write # to be able to comment on released pull requests - id-token: write # to enable use of OIDC for npm provenance - steps: - - name: Checkout - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: "lts/*" - - name: Install dependencies - run: npm clean-install - - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies - run: npm audit signatures - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release diff --git a/.releaserc b/.releaserc new file mode 100644 index 00000000..ceb45e03 --- /dev/null +++ b/.releaserc @@ -0,0 +1,18 @@ +{ + "release": { + "branches": [ + { + "name": "main", + "channel": "release" + }, + { + "name": "dev", + "channel": "beta" + }, + { + "name": "feature/*", + "channel": "alpha" + } + ] + } +} \ No newline at end of file