diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ec81b55..410525d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -12,9 +12,10 @@ env: VERSION: 0.7.7 jobs: - setup: - name: Setup + publish: + name: Publish a new version runs-on: [ubuntu-latest] + needs: [setup] steps: - name: Checkout Code uses: actions/checkout@v3 @@ -28,11 +29,6 @@ jobs: - name: Install dependencies run: npm ci - publish-to-npm: - name: Publish to NPM - runs-on: [ubuntu-latest] - needs: [setup] - steps: - name: Write NPM RC run: | echo '@castlabs:registry=https://registry.npmjs.org' > .npmrc @@ -48,26 +44,19 @@ jobs: - name: Publish to NPM run: npm publish --dry-run - - name: Job Summary + - name: Add NPM Job summary run: | echo '### NPM Release' >> $GITHUB_STEP_SUMMARY echo "Released version ${{ env.VERSION }} of https://www.npmjs.com/package/@castlabs/prestoplay-react-components" >> $GITHUB_STEP_SUMMARY - publish-api-docs: - name: Publish API Docs - runs-on: [ubuntu-latest] - needs: [setup] - steps: - name: Build Storybook run: npm run build-storybook - # # TODO remove this debug - # - name: Debug Echo target bucket - # run: echo "s3://players-castlabs-com-root/react-dom/${{ env.VERSION }}/" - # - name: Debug List Dist - # run: ls -la ./dist/storybook + # TODO remove this debug + - name: Debug Echo target bucket + run: echo "s3://players-castlabs-com-root/react-dom/${{ env.VERSION }}/" - # # TODO how does not work, does the repo need to be registered to be + # # TODO how does this work? Does the repo need to be registered to be # # able to assume that role or what? # - name: Assume AWS role # uses: aws-actions/configure-aws-credentials@v1-node16