diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c7e5fa0..cc81a5b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,8 +10,23 @@ jobs: build: runs-on: ubuntu-latest steps: + - name: Get current date + id: date + run: echo "::set-output name=date::$(date +'%Y-%m-%d-%S')" + - name: Test with environment variables + run: echo $TAG_NAME - $RELEASE_NAME + env: + TAG_NAME: nightly-tag-${{ steps.date.outputs.date }} + RELEASE_NAME: nightly-release-${{ steps.date.outputs.date }} - name: Checkout uses: actions/checkout@master + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build - name: Archive Release uses: thedoctor0/zip-release@0.7.1 with: @@ -24,7 +39,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: true + tag_name: nightly-tag-${{ steps.date.outputs.date }} + release_name: nightly-release-${{ steps.date.outputs.date }} + draft: false prerelease: true