Skip to content

Commit

Permalink
config semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
yesmeck committed Nov 27, 2024
1 parent 729201d commit ac46745
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 1,223 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
push:
branches:
- main # or main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,17 @@ Type-safe helper for manipulating internal links in your React Router apps.

## Features

- [Typed URL generation](#typed-url-generation)
- [Appending query string](#appending-query-string)
- [Typed query string](#typed-query-string)
- [Typed route ids](#typed-route-ids)
- [Basename support](#basename-support)
- [safe-routes](#safe-routes)
- [Features](#features)
- [Installation](#installation)
- [Setup](#setup)
- [Usage](#usage)
- [Typed URL generation](#typed-url-generation)
- [Appending query string](#appending-query-string)
- [Typed query string](#typed-query-string)
- [Typed route ids](#typed-route-ids)
- [Basename support](#basename-support)
- [License](#license)

## Installation

Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
"watch": "tsc --watch",
"prebuild": "rm -rf dist",
"build": "tsc",
"prepack": "npm run build",
"semantic-release": "semantic-release"
"prepack": "npm run build"
},
"keywords": [
"remix",
Expand All @@ -47,7 +46,6 @@
"@react-router/dev": "^7.0.1",
"@types/mkdirp": "^2.0.0",
"@types/node": "^22.9.3",
"semantic-release": "^24.2.0",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vitest": "^2.1.5"
Expand Down
Loading

0 comments on commit ac46745

Please sign in to comment.