From 7c200b5d4d6af0ec54d1c6447d8b113b31026dee Mon Sep 17 00:00:00 2001 From: albinAppsmith <87797149+albinAppsmith@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:54:00 +0530 Subject: [PATCH] fix: updated action versions --- .github/workflows/npm-publish.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ef1dee6c29f8..9aecaf945b5d 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,6 +11,9 @@ jobs: release: name: Release runs-on: ubuntu-latest + defaults: + run: + working-directory: app/client steps: # Get yarn cache directory and set it in a variable - name: Get yarn cache path @@ -19,15 +22,15 @@ jobs: # Checkout branch or head commit - name: Checkout branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: fetch-depth: 0 # Set up node version - name: Setup Node js version - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: - node-version: 16.x + node-version-file: app/client/package.json # Load yarn cache - name: Load Yarn cache @@ -55,11 +58,11 @@ jobs: //registry.npmjs.org/:_authToken=$NPM_TOKEN EOF env: - NPM_TOKEN: ${{ secrets.APPSMITH_NPM_PUBLISH_KEY }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # Build packages, add packages build script inside workspace scripts.build - name: Build packages - run: yarn build + run: yarn workspace @design-system/ads build # Create PR & publish to NPM - name: Create release Pull Request or publish to NPM