From f4ba32283c57290c348f5be7b2baa459aee1a5de Mon Sep 17 00:00:00 2001 From: Bronley Plumb Date: Tue, 14 Nov 2023 14:17:16 -0500 Subject: [PATCH] tweaks --- .github/workflows/create-package.yml | 36 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/.github/workflows/create-package.yml b/.github/workflows/create-package.yml index 790be47e..789bc8e2 100644 --- a/.github/workflows/create-package.yml +++ b/.github/workflows/create-package.yml @@ -8,35 +8,35 @@ jobs: if: contains(github.event.pull_request.labels.*.name, 'create-package') steps: - # # Get a bot token so the bot's name shows up on all our actions - # - name: Get Token From roku-ci-token Application - # uses: tibdex/github-app-token@v1 - # id: generate-token - # with: - # app_id: ${{ secrets.BOT_APP_ID }} - # private_key: ${{ secrets.BOT_PRIVATE_KEY }} - # - name: Set New GitHub Token - # run: echo "TOKEN=${{ steps.generate-token.outputs.token }}" >> $GITHUB_ENV + # Get a bot token so the bot's name shows up on all our actions + - name: Get Token From roku-ci-token Application + uses: tibdex/github-app-token@v1 + id: generate-token + with: + app_id: ${{ secrets.BOT_APP_ID }} + private_key: ${{ secrets.BOT_PRIVATE_KEY }} + - name: Set New GitHub Token + run: echo "TOKEN=${{ steps.generate-token.outputs.token }}" >> $GITHUB_ENV # # build an npm package - uses: actions/checkout@master - # - uses: actions/setup-node@master - # with: - # node-version: "14.19.0" - # - run: npm ci + - uses: actions/setup-node@master + with: + node-version: "14.19.0" + - run: npm ci - name: Compute pre-release version run: | CURRENT_VERSION=$(grep -o '\"version\": *\"[^\"]*\"' package.json | awk -F'\"' '{print $4}') BUILD_VERSION="$CURRENT_VERSION-alpha.$(date +%Y%m%d)" echo "BUILD_VERSION=$BUILD_VERSION" >> $GITHUB_ENV - # - name: Update version and run pre-release scripts - # run: npm version "$BUILD_VERSION" --no-git-tag-version - # - run: npm pack + - name: Update version and run pre-release scripts + run: npm version "$BUILD_VERSION" --no-git-tag-version + - run: npm pack - uses: actions/upload-artifact@v3 with: - # path: "*.tgz" - path: "package.json" + name: ${{ env.BUILD_VERSION }}.tgz + path: "*.tgz" - name: Add comment to PR uses: actions/github-script@v7