diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 9607bfb..f79df62 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -189,16 +189,20 @@ jobs: with: node-version: '20.x' registry-url: 'https://registry.npmjs.org/' + - name: Install pnpm + run: npm install -g pnpm + - name: Install Dependencies + run: pnpm install - uses: actions/download-artifact@v4 with: name: code-changes-artifact # get artifact containing whether there were code changes - name: Read Code Changes Flag From Artifact run: | echo "CODE_CHANGES=$(cat code_changes.txt)" >> $GITHUB_ENV - - name: Install dependencies - run: npm install - name: Get package version number run: echo "PACKAGE_VERSION=$(node -p "require('./package.json').version")" >> $GITHUB_ENV + - name: Build TypeScript into JavaScript build artifact + run: pnpm run build - name: Publish to NPM # only run if there were code changes if: env.CODE_CHANGES == 'true' && env.PACKAGE_VERSION run: npm publish