Skip to content

Commit

Permalink
fix(build): fix bug release
Browse files Browse the repository at this point in the history
  • Loading branch information
haloivanid committed Aug 11, 2023
1 parent 58fa051 commit b9114e4
Show file tree
Hide file tree
Showing 11 changed files with 67 additions and 14,988 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ jobs:
release:
runs-on: ubuntu-latest

env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}

steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -29,13 +38,12 @@ jobs:
- name: Install dependencies
run: npm install

- name: Publish package
- name: Generate pre-semantic files
run: ./scripts/pre-semantic.sh

- name: Versioning
run: npx semantic-release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_COMMITTER_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}

- name: Publishing
run: cd lib && npm publish --access public

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ dist

# lib
lib

# package-lock.json
package-lock.json
16 changes: 11 additions & 5 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,22 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/npm",
["@semantic-release/npm", {
"npmPublish": false,
"pkgRoot": "lib"
}],
"@semantic-release/github",
"@semantic-release/changelog",
"@semantic-release/git",
["@semantic-release/git",
{
"assets": ["package.json", "CHANGELOG.md"]
}
],
[
"@semantic-release/exec",
{
"publishCmd": "npm run build"
"prepareCmd": "./scripts/build.sh ${nextRelease.version}"
}
]
],
"pkgRoot": "lib"
]
}
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# [1.1.0](https://github.com/haloivanid/ingress-prime-stat/compare/v1.0.0...v1.1.0) (2023-08-10)
# 1.0.0 (2023-08-10)


### Features

* **main:** add validation stat ([f58e02d](https://github.com/haloivanid/ingress-prime-stat/commit/f58e02d2ad4c5d03effdf72bfd10d88247851e62))
* **main.ts:** add main code ([a44a5fa](https://github.com/haloivanid/ingress-prime-stat/commit/a44a5fa1b8b395448ef984c07ac6bd0bb09e7836))
* **main.ts:** add to string and from object function ([705c19d](https://github.com/haloivanid/ingress-prime-stat/commit/705c19d3efc24f0e90cc45ae50536d88d9c43888))
7 changes: 0 additions & 7 deletions lib/CHANGELOG.md

This file was deleted.

20 changes: 0 additions & 20 deletions lib/package.json

This file was deleted.

Loading

0 comments on commit b9114e4

Please sign in to comment.