Skip to content

Commit

Permalink
fix(deps): 🐛 Fixing the release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
spa5k committed Aug 11, 2021
1 parent ecbc093 commit 9948736
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Release

# Run the workflow when a Pull Request is opened or when changes are pushed to master
on:
push:
branches:
- main
branches: [main]

jobs:
runner-job:
Expand All @@ -29,9 +30,10 @@ jobs:
run: curl -f https://get.pnpm.io/v6.7.js | node - add --global pnpm@6
- name: Install deps
run: pnpm install
- name: Build
run: pnpm build

- name: Linting
run: pnpm lint
- name: Test
run: pnpm test
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
16 changes: 10 additions & 6 deletions .releaserc.json → release.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
module.exports = {
"branches": [
"+([0-9])?(.{+([0-9]),x}).x",
"main",
Expand All @@ -14,19 +14,23 @@
"prerelease": true
}
],
"repositoryUrl": "https://github.com/Unbuttun/chinese-numbers-to-arabic",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github",
["@semantic-release/npm", {
"tarballDir": "release"
}],
["@semantic-release/github", {
"assets": "release/*.tgz"
}],
[
"@semantic-release/git",
{
"assets": ["package.json"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
]
]
}
],
"preset": "angular"
}

0 comments on commit 9948736

Please sign in to comment.