diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..47bfa9c --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,35 @@ +name: Release +on: + push: + branches: + - main +permissions: + contents: write + packages: write + +jobs: + release: + runs-on: ubuntu-latest + timeout-minutes: 60 + steps: + - uses: actions/checkout@v3.5.0 + with: + fetch-depth: 20 + lfs: true + + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: lts/* + + - name: Install Dependencies + run: yarn install --frozen-lockfile + + - name: Build + run: yarn build + + - name: Release + uses: cycjimmy/semantic-release-action@v3 + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }}