diff --git a/.github/workflows/release-package.yml b/.github/workflows/release-package.yml index 1a21698..9a20eac 100644 --- a/.github/workflows/release-package.yml +++ b/.github/workflows/release-package.yml @@ -11,12 +11,12 @@ jobs: packages: write contents: write steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: registry-url: 'https://npm.pkg.github.com/' - node-version: 18 + node-version: 20 - name: Set Git credentials run: | git config --global user.email "sdp.devs@dpc.vic.gov.au" @@ -26,6 +26,6 @@ jobs: env: NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Publish to GH Package registry - run: npm publish + run: npm publish --tag ${{ github.event.release.prerelease && 'alpha' || 'latest' }} env: - NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}