Skip to content

Commit

Permalink
Adding github release
Browse files Browse the repository at this point in the history
  • Loading branch information
y3fers0n committed May 28, 2024
1 parent 2893a1e commit 978c7d2
Showing 1 changed file with 26 additions and 5 deletions.
31 changes: 26 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
generate-releases:
npm-release:
name: NPM Release
runs-on: ubuntu-latest
steps:
Expand All @@ -27,10 +27,6 @@ jobs:
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Set up Git user information
run: |
git config --global user.email "[email protected]"
git config --global user.name "Trust"
- name: build packages
run: |
bun install
Expand All @@ -40,6 +36,31 @@ jobs:
bun run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
github-release:
name: Github Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: main
- uses: oven-sh/setup-bun@v1
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: "https://npm.pkg.github.com"
scope: "@trustwallet"
- name: Set output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: build packages
run: |
bun install
bun run build:packages
bun run test
bun run rename ${{ github.event.inputs.version || steps.vars.outputs.tag }}
bun run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
permissions:
actions: write
contents: write
Expand Down

0 comments on commit 978c7d2

Please sign in to comment.