Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# These are supported funding model platforms

custom: ["https://www.paypal.com/paypalme/jairajjangle001/usd", "https://github.com/JairajJangle/OpenCV-Catalogue/blob/master/.github/Jairaj_Jangle_Google_Pay_UPI_QR_Code.jpg"]
liberapay: FutureJJ
ko_fi: futurejj

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
35 changes: 35 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,3 +161,38 @@ jobs:
with:
name: ios-error-log
path: ios_errorlog.txt

publish-npm:
needs: [lint, test, build-library, build-android, build-ios]
runs-on: ubuntu-latest
permissions:
contents: write # To publish a GitHub release
issues: write # To comment on released issues
pull-requests: write # To comment on released pull requests
id-token: write # To enable use of OIDC for npm provenance
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # Ensures all tags are fetched

- name: Setup
uses: ./.github/actions/setup

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*" # Use the latest LTS version of Node.js
registry-url: 'https://registry.npmjs.org/' # Specify npm registry

- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures # Check the signatures to verify integrity

- name: Release
run: npx semantic-release # Run semantic-release to manage versioning and publishing
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub token for authentication

# Why NODE_AUTH_TOKEN instead of NPM_TOKEN: https://github.com/semantic-release/semantic-release/issues/2313
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # npm token for publishing package
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,13 @@
"author": "Jairaj Jangle <reachout.jairaj.jangle@gmail.com> (https://github.com/JairajJangle)",
"license": "MIT",
"bugs": {
"url": "https://github.com/JairajJangle/react-native-tiny-wavpack-decoder/issues"
"url": "https://github.com/JairajJangle/react-native-tiny-wavpack-decoder/issues",
"email": "reachout.jairaj.jangle@gmail.com"
},
"homepage": "https://github.com/JairajJangle/react-native-tiny-wavpack-decoder#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
"registry": "https://registry.npmjs.org/",
"provenance": true
},
"devDependencies": {
"@commitlint/config-conventional": "^19.6.0",
Expand All @@ -71,7 +73,11 @@
"@evilmartians/lefthook": "^1.5.0",
"@react-native-community/cli": "15.0.1",
"@react-native/eslint-config": "^0.78.0",
"@release-it/conventional-changelog": "^9.0.2",
"@release-it/conventional-changelog": "^10.0.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.1",
"@semantic-release/npm": "^12.0.1",
"@types/jest": "^29.5.5",
"@types/react": "^19.0.0",
"commitlint": "^19.6.1",
Expand All @@ -85,6 +91,7 @@
"react-native": "0.78.2",
"react-native-builder-bob": "^0.40.6",
"release-it": "^17.10.0",
"semantic-release": "^24.1.0",
"turbo": "^1.10.7",
"typescript": "^5.2.2"
},
Expand Down
30 changes: 30 additions & 0 deletions release.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
module.exports = {
branches: [
'main',
{
name: 'beta',
prerelease: true, // Marks this as a prerelease channel
},
],
plugins: [
'@semantic-release/commit-analyzer', // Analyzes commits for version bumping
'@semantic-release/release-notes-generator', // Generates release notes
'@semantic-release/changelog', // Generates the changelog
[
'@semantic-release/npm',
{
npmPublish: true,
tag: 'beta', // Publishes with a 'beta' tag to npm
},
],
'@semantic-release/github', // Handles GitHub releases
[
'@semantic-release/git',
{
assets: ['package.json', 'yarn.lock', 'CHANGELOG.md'],
message:
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
},
],
],
};
Loading
Loading