From bb232d83d7c4312d73e30f929ef02fd9b2517032 Mon Sep 17 00:00:00 2001 From: David Featherston Date: Tue, 2 Jul 2024 16:17:44 +1000 Subject: [PATCH] feat: update action versions, respect GitHubs prerelease checkbox --- .github/workflows/release-package.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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 }}