diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..e0d1c9b --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: release +"on": + push: + branches: + - main + +permissions: + contents: write + issues: write + pull-requests: write + +jobs: + release: + name: release + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + cache: npm + node-version: lts/* + - run: npm ci + - run: npm run build + - uses: ./ # Uses the action in the root directory + id: app-token + with: + app_id: ${{ vars.RELEASER_APP_ID }} + private_key: ${{ secrets.RELEASER_APP_PRIVATE_KEY }} + + - id: commit + uses: stefanzweifel/git-auto-commit-action@v4 + with: + commit_message: "build: update dist files" + - run: npm i semantic-release-plugin-github-breaking-version-tag + - run: npx semantic-release + env: + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}