Skip to content

Commit

Permalink
feat: automate the release and publishing with semantic-release (#1683)
Browse files Browse the repository at this point in the history
  • Loading branch information
alecarn committed May 30, 2024
1 parent 397f67b commit bc4e61e
Show file tree
Hide file tree
Showing 43 changed files with 17,218 additions and 11,591 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/gh-release.yml

This file was deleted.

36 changes: 0 additions & 36 deletions .github/workflows/onPush-ci.js.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
#

name: complete
name: Pull Request

on:
workflow_dispatch:
push:
branches:
- master
- next
pull_request:
branches:
- master
- next
types: [opened, synchronize]

jobs:
build:
Expand All @@ -23,15 +18,19 @@ jobs:

- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20.x'

cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Check Quality
run: npm run circular-deps.check & npm run lint
run: npm ci --no-audit

- name: Security
run: npm audit --omit dev && npm audit signatures

- name: Quality
run: npm run circular-deps & npm run lint

- name: Test
run: npm run e2e & npm run test
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
#

name: Release
on:
push:
branches:
- master
- next
- ^[0-9]+(.[0-9]+)?.x$

jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write # to enable use of OIDC for npm provenance
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: npm ci --no-audit

- name: Security
run: npm audit --omit dev && npm audit signatures

- name: Quality
run: npm run circular-deps & npm run lint

- name: Test
run: npm run e2e & npm run test

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.PAT }}
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
run: npm run release
7 changes: 0 additions & 7 deletions .madgerc

This file was deleted.

Loading

0 comments on commit bc4e61e

Please sign in to comment.