Skip to content

Commit

Permalink
ci(release): Configure semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
ff6347 committed Nov 4, 2023
1 parent 7203c67 commit 98713a4
Show file tree
Hide file tree
Showing 4 changed files with 7,205 additions and 1,103 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will do a clean install of node dependencies, build the source code and run tests
name: Node.js CI
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
build:
env:
CI: true
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js from .nvmrc
uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: npm ci
- run: npm run build --if-present
- run: npm run test --if-present
release:
name: semantic-release
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- uses: actions/setup-node@v3
with:
node-version-file: ".nvmrc"
- run: |
npm ci
npx semantic-release --ci
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
Loading

0 comments on commit 98713a4

Please sign in to comment.