Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
y3fers0n authored Jun 24, 2024
1 parent 4fcc58f commit ebc9d06
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,27 @@ on:
workflow_dispatch:
inputs:
version:
default: "4.0.0"
default: '4.0.0'
description: New version number >= 4.0.0
required: true

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
generate-releases:
name: NPM Release
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@v3
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: "https://npm.pkg.github.com"
scope: "@trustwallet"
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
Expand All @@ -33,7 +33,7 @@ jobs:
bun install
bun run build:packages
bun run test
npm version ${{ github.event.inputs.version || steps.vars.outputs.tag }}
bun run rename ${{ github.event.inputs.version || steps.vars.outputs.tag }}
bun run publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit ebc9d06

Please sign in to comment.