Skip to content

Commit

Permalink
Merge pull request #348 from Jimdo/replace-release-process
Browse files Browse the repository at this point in the history
Replace release process
  • Loading branch information
smellai authored Jul 5, 2024
2 parents 14c050b + 3b69aec commit fe5d4b8
Show file tree
Hide file tree
Showing 7 changed files with 3,564 additions and 9,835 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@ on:
push:
branches:
- main
- beta
jobs:
release:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
Expand All @@ -23,10 +22,12 @@ jobs:
run: npm run build
- name: Test
run: npm test
- name: Create .npmrc
run: echo '//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}' > .npmrc
shell: bash
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npm run semantic-release
- name: Upload Code Coverage
uses: codecov/[email protected]
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
[![Downloads][downloads-img]][downloads-url]
[![Issues][issues-img]][issues-url]
[![Commitizen Friendly][commitizen-img]][commitizen-url]
[![Semantic Release][semantic-release-img]][semantic-release-url]

[Find out where a ts/js package is used](https://medium.com/p/caabc3a7544c) across a GitHub organization, version and position of the package for each repository.

Expand Down Expand Up @@ -72,7 +71,7 @@ When config option omitted, default for config file will be local `config.json`.
"org": "myOrg",
"daysUntilStale": 90, // If omitted, 365 will be used as default
"ghAuthToken": "my-GH-auth-token",
"pkgName": "myPkg",
"pkgName": "myPkg"
}
```

Expand All @@ -96,7 +95,5 @@ npm run dev
[npm-url]: https://www.npmjs.com/package/package-adoption
[issues-img]: https://img.shields.io/github/issues/jimdo/package-adoption
[issues-url]: https://github.com/jimdo/package-adoption/issues
[semantic-release-img]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
[semantic-release-url]: https://github.com/semantic-release/semantic-release
[commitizen-img]: https://img.shields.io/badge/commitizen-friendly-brightgreen.svg
[commitizen-url]: http://commitizen.github.io/cz-cli/
Loading

0 comments on commit fe5d4b8

Please sign in to comment.