diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d193d9e --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,31 @@ +name: release + +on: + push: + branches: + - master + +jobs: + release: + if: "!contains(github.event.head_commit.message, 'chore(release)')" + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-node@v3 + with: + node-version: 18 + + - name: Install dependencies + run: yarn bootstrap + + - name: Build + run: yarn build + + - name: Release + run: yarn publish --conventional-commits --yes + env: + NODE_AUTH_TOKEN: ${{ secrets.TINKOFF_NPM_AUTH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}