From d7b2abd430fbdbed357fd206408e8eccfc5f9d62 Mon Sep 17 00:00:00 2001 From: streamich Date: Mon, 20 Nov 2023 13:24:38 +0100 Subject: [PATCH] =?UTF-8?q?ci:=20=F0=9F=8E=A1=20add=20release=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 37 +++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000000..81b0cbb276 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }}