Skip to content

Commit

Permalink
fix: semantic release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
noomorph committed Oct 9, 2023
1 parent 9f143c8 commit 2aa7115
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
26 changes: 25 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [ master ]
branches: [ master, beta ]
pull_request:
branches: [ master ]

Expand Down Expand Up @@ -118,6 +118,8 @@ jobs:
path: artifacts

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- name: Install dependencies
run: npm -g install "[email protected]" "[email protected]"
Expand All @@ -139,3 +141,25 @@ jobs:
with:
add: docs/images/coverage.svg
message: 'chore: update coverage badge'

publish:
name: Publish
needs: [sanity, compatibility]
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'

- uses: bahmutov/npm-install@v1
with:
useLockFile: false

- name: Semantic release
run: npx --no-install semantic-release --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 0 additions & 2 deletions .releaserc

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@
"lodash": "^4.17.21",
"nyc": "^15.1.0",
"prettier": "^3.0.0",
"semantic-release": "^22.0.5",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typedoc": "^0.24.8",
Expand Down

0 comments on commit 2aa7115

Please sign in to comment.