Skip to content

Commit

Permalink
Merge pull request #10 from dynolabs/fix/update-release-workflow
Browse files Browse the repository at this point in the history
fix: Update release workflow
  • Loading branch information
Dulajdeshan authored Nov 7, 2024
2 parents 895739d + a2919c5 commit dc5eaeb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Tests
on:
push:
branches: [main]
branches: ["*"]
pull_request:
branches: [main]
types: [opened]

jobs:
build:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ on:
push:
branches:
- release
- main
jobs:
release:
name: Release and Publish
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/release' }}
steps:
- name: Checkout repository
uses: actions/checkout@v3
Expand All @@ -24,7 +24,7 @@ jobs:
run: yarn build
- name: Install semantic-release
run: yarn global add semantic-release-cli semantic-release
- run: semantic-release --branches release
- run: semantic-release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .npmrc

This file was deleted.

5 changes: 0 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,6 @@
"publishConfig": {
"access": "public"
},
"release": {
"branches": [
"latest"
]
},
"engines": {
"node": ">=16.0.0 <=20.x.x",
"npm": ">=6.0.0"
Expand Down
7 changes: 7 additions & 0 deletions release.config.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* @type {import('semantic-release').GlobalConfig}
*/

module.exports = {
branches: ['release', { name: 'main', prerelease: 'next' }],
};

0 comments on commit dc5eaeb

Please sign in to comment.