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

31 lines
593 B
YAML
Raw Normal View History

name: 'Build & Release'
2022-05-16 14:15:29 +02:00
on:
push:
2023-02-10 12:44:23 +01:00
branches: [main]
2022-05-16 14:15:29 +02:00
jobs:
2022-08-13 20:46:35 +02:00
build-release:
2022-05-16 14:15:29 +02:00
runs-on: ubuntu-latest
2022-08-13 21:06:41 +02:00
2022-05-16 14:15:29 +02:00
steps:
- name: Checkout code
uses: actions/checkout@v3.0.0
- name: Use Node.js
uses: actions/setup-node@v3.1.1
with:
node-version: 18.x
2022-05-16 14:15:29 +02:00
- name: Install dependencies
2022-05-25 22:44:01 +02:00
run: yarn --frozen-lockfile
2022-05-16 14:15:29 +02:00
- name: Building project
run: yarn build
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 }}