From af6b697d3e74b1c35fd6d090463060a9c0aadf37 Mon Sep 17 00:00:00 2001 From: Yeferson Licet Date: Tue, 11 Jun 2024 10:51:54 -0300 Subject: [PATCH] Updating to publish internally in Github --- .github/workflows/build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 270fcdc5..6c00e32b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,6 +20,11 @@ jobs: with: ref: main - uses: oven-sh/setup-bun@v1 + uses: actions/setup-node@v3 + with: + node-version: 20 + registry-url: "https://npm.pkg.github.com" + scope: "@trustwallet" - name: Set output id: vars run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT @@ -31,7 +36,7 @@ jobs: npm version ${{ github.event.inputs.version || steps.vars.outputs.tag }} bun run publish env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} permissions: actions: write contents: write