next-app-boilerplate/.github/workflows/release.yml

29 lines
598 B
YAML
Raw Normal View History

2022-05-16 14:15:29 +02:00
name: 'Release version'
on:
push:
2022-05-16 21:34:00 +02:00
branches: [master]
2022-05-16 14:15:29 +02:00
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/master' }}
needs: [quality]
steps:
- name: Checkout code
uses: actions/checkout@v3.0.0
- name: Use Node.js
uses: actions/setup-node@v3.1.1
with:
node-version: 16.x
- name: Install packages
2022-05-25 22:44:01 +02:00
run: yarn --frozen-lockfile
2022-05-16 14:15:29 +02:00
- name: Release project
2022-05-25 22:44:01 +02:00
run: yarn release
2022-05-16 14:15:29 +02:00
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}