diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7881c1c..516742a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,7 @@ on: push: branches: - release + - ci-test jobs: tag-release: @@ -23,10 +24,16 @@ jobs: uses: actions/setup-node@v3 with: node-version: "lts/*" + + - name: Create ci directory + run: mkdir ci + - name: install plugins + working-directory: ./ci run: npm install @semantic-release/git @semantic-release/changelog -D - name: Release + working-directory: ./ci env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: npx semantic-release diff --git a/.releaserc.json b/.releaserc.json index d529aa4..b486c05 100644 --- a/.releaserc.json +++ b/.releaserc.json @@ -2,6 +2,10 @@ "branches": [ { "name": "release" + }, + { + "name": "ci-test", + "prerelease": true } ], "plugins": [