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 10, 2023
1 parent 58fa051 commit 85c5b40
Show file tree
Hide file tree
Showing 11 changed files with 80 additions and 14,986 deletions.
29 changes: 20 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,15 @@ 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
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
npm publish
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"
]
}
14 changes: 14 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# [1.1.0](https://github.com/haloivanid/ingress-prime-stat/compare/v1.0.0...v1.1.0) (2023-08-10)


### Bug Fixes

* **build:** fix bug release ([d600c12](https://github.com/haloivanid/ingress-prime-stat/commit/d600c1247b151a397a3f506920a9e0107e573150))


### Features

* **main:** add validation stat ([f58e02d](https://github.com/haloivanid/ingress-prime-stat/commit/f58e02d2ad4c5d03effdf72bfd10d88247851e62))
* **main:** add validator check to more readable ([58fa051](https://github.com/haloivanid/ingress-prime-stat/commit/58fa051b12e74f2f9cceed678cd0aed1bd69080d))

# 1.0.0 (2023-08-10)


### Features

* **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 85c5b40

Please sign in to comment.