From d245bbad45505c20be79b068f832600d941b9844 Mon Sep 17 00:00:00 2001 From: Marshall <36639405+mdr0id@users.noreply.github.com> Date: Wed, 20 Nov 2024 11:56:51 -0800 Subject: [PATCH] Update npm-publish.yml (#47) --- .github/workflows/npm-publish.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 2e7ff5a..020f745 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -13,9 +13,15 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '18' + node-version: '20' registry-url: 'https://registry.npmjs.org' - - run: npm ci - - run: npm publish + - name: Install Yarn + run: npm install -g yarn + - name: Install Dependencies + run: yarn install --frozen-lockfile + - name: Build + run: yarn build + - name: Publish + run: yarn publish --non-interactive env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}