From f069f630fb846f73108ec6c70ed93f6a1fddd876 Mon Sep 17 00:00:00 2001 From: Tyler Date: Tue, 30 Jan 2024 05:55:49 -0700 Subject: [PATCH] match stablecoin studio for set up node (#36) Signed-off-by: Tyler McDonald --- .github/workflows/publish.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ff59ff80..65825bd8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,7 +5,7 @@ on: - published jobs: publish: - name: npm + name: docker runs-on: [self-hosted, Linux, medium, ephemeral] permissions: @@ -15,14 +15,20 @@ jobs: - name: Checkout repository uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 + - name: Setup NodeJS Environment - uses: actions/setup-node@d86ebcd40b3cb50b156bfa44dd277faf38282d12 + uses: actions/setup-node@5e21ff4d9bc1a8cf6de233a3057d20ec6b3fb69d with: node-version: 18.x - name: Install dependencies run: npm install + - name: Create .npmrc + run: | + touch .npmrc + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> .npmrc + - name: Publish run: npm publish --public env: