Skip to content

Commit

Permalink
build: update release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
EHadoux committed Dec 4, 2023
1 parent 5dcd44c commit c537d81
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 105 deletions.
72 changes: 0 additions & 72 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

26 changes: 22 additions & 4 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
permissions:
contents: write
pull-requests: write
packages: write

name: release-please

Expand All @@ -14,8 +15,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
id: release
- name: Clone
uses: actions/checkout@v4
if: ${{ steps.release.outputs.release_created }}
- name: Use Node.js 18.x
uses: actions/setup-node@v4
if: ${{ steps.release.outputs.release_created }}
with:
release-type: node
package-name: '@scribelabsai/amazon-trp'
include-v-in-tag: false
token: ${{ secrets.PATFORRELEASE }}
node-version: 18.x
registry-url: 'https://npm.pkg.github.com'
scope: '@scribelabsai'
- name: Install deps
run: npm install
if: ${{ steps.release.outputs.release_created }}
- name: Build source
run: npm run build:lib && npm run build:bin
if: ${{ steps.release.outputs.release_created }}
- name: Publish
run: npm publish --access public
if: ${{ steps.release.outputs.release_created }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29 changes: 0 additions & 29 deletions .github/workflows/release.yml

This file was deleted.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
"eslint-plugin-unicorn": "^49.0.0",
"eslint-plugin-vitest": "^0.3.1",
"prettier": "^3.0.0",
"release-please": "^16.3.1",
"typescript": "^5.0.0",
"vitest": "^0.34.4"
},
Expand Down

0 comments on commit c537d81

Please sign in to comment.