Skip to content

Commit

Permalink
chore: Remplacer standard-version par release-please.
Browse files Browse the repository at this point in the history
  • Loading branch information
regseb committed Oct 2, 2023
1 parent 18b6c29 commit f8583e4
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 2 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release
on:
push:
branches: [main]

jobs:
release-please:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Run Release Please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
if: ${{ steps.release.outputs.release_created }}

- name: Checkout repository
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}

- name: Install dependencies
run: npm ci
if: ${{ steps.release.outputs.release_created }}

- name: Publish in npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
if: ${{ steps.release.outputs.release_created }}
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
"test:coverage": "stryker run .stryker.config.js",
"jsdocs": "typedoc --tsconfig .tsconfig_jsdocs.json",
"prepare": "tsc --project .tsconfig_types.json",
"release": "standard-version",
"clean": "node .script/clean.js"
},
"devDependencies": {
Expand Down Expand Up @@ -82,7 +81,6 @@
"npm-package-json-lint": "6.4.0",
"prettier": "2.8.8",
"sinon": "15.2.0",
"standard-version": "9.5.0",
"typedoc": "0.24.8",
"typescript": "5.1.6",
"yaml-lint": "1.7.0"
Expand Down

0 comments on commit f8583e4

Please sign in to comment.