Skip to content

Commit

Permalink
ci: 🎡 add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
streamich committed Nov 20, 2023
1 parent 958b375 commit d7b2abd
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Node.js CI

on:
push:
branches: [ master ]

jobs:
release:
if:
${{ github.event_name == 'push' && (github.event.ref == 'refs/heads/master' || github.event.ref == 'refs/heads/next') }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn prettier:check
- run: yarn lint
- run: yarn test:ci --ci
- run: yarn build:all
- run: yarn test:cli:pointer
- run: yarn test:cli:patch
- run: yarn test:cli:pack
- run: yarn demo:json-patch
- run: yarn demo:json-pointer
- run: yarn test:reactive-rpc
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit d7b2abd

Please sign in to comment.