diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 92ed0a60a7..f951284e0b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -9,20 +9,15 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Read .nvmrc - run: echo ::set-output name=NVMRC::$(cat .nvmrc) + run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT id: nvm - name: Setup node ${{ steps.nvm.outputs.NVMRC }} - uses: actions/setup-node@v3.5.1 + uses: actions/setup-node@v4 with: node-version: ${{ steps.nvm.outputs.NVMRC }} - registry-url: https://registry.npmjs.org/ - - name: Setup Node - uses: actions/setup-node@v3.5.1 - with: - node-version: '14.x' registry-url: 'https://registry.npmjs.org' - name: Install dependencies and build 🔧 - run: npm install --force + run: yarn install --frozen-lockfile - name: Publish package on NPM 📦 run: npm publish ${{ github.event.release.prerelease && '--tag next' || ''}} env: