Skip to content

Commit

Permalink
chore: upgrade to ci based releases
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Sep 3, 2024
1 parent f4ce83e commit d093ce5
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 20 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: release
on: workflow_dispatch
permissions:
contents: write
id-token: write
jobs:
checks:
uses: ./.github/workflows/checks.yml
release:
needs: checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 20
- name: git config
run: |
git config user.name "${GITHUB_ACTOR}"
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
- name: Init npm config
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm install
- run: npm run release -- --ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37 changes: 17 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,10 @@
"@adonisjs/eslint-config": "^2.0.0-beta.6",
"@adonisjs/prettier-config": "^1.4.0",
"@adonisjs/tsconfig": "^1.4.0",
"@commitlint/cli": "^19.4.1",
"@commitlint/config-conventional": "^19.4.1",
"@japa/assert": "^3.0.0",
"@japa/expect-type": "^2.0.2",
"@japa/runner": "^3.1.4",
"@release-it/conventional-changelog": "^8.0.1",
"@swc/core": "^1.7.23",
"@types/bcrypt": "^5.0.2",
"@types/node": "^22.5.2",
Expand Down Expand Up @@ -95,30 +94,31 @@
"url": "https://github.com/adonisjs/hash/issues"
},
"homepage": "https://github.com/adonisjs/hash#readme",
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
},
"publishConfig": {
"access": "public",
"tag": "latest"
"provenance": true
},
"release-it": {
"git": {
"requireCleanWorkingDir": true,
"requireUpstream": true,
"commitMessage": "chore(release): ${version}",
"tagAnnotation": "v${version}",
"push": true,
"tagName": "v${version}"
},
"hooks": {
"before:init": [
"npm test"
]
},
"github": {
"release": true,
"releaseName": "v${version}",
"web": true
"release": true
},
"npm": {
"publish": true,
"skipChecks": true
},
"plugins": {
"@release-it/conventional-changelog": {
"preset": {
"name": "angular"
}
}
}
},
"c8": {
Expand All @@ -131,9 +131,6 @@
"src/legacy/**"
]
},
"eslintConfig": {
"extends": "@adonisjs/eslint-config/package"
},
"prettier": "@adonisjs/prettier-config",
"tsup": {
"entry": [
Expand Down

0 comments on commit d093ce5

Please sign in to comment.