Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fingerartur committed Nov 20, 2023
1 parent a9f6bea commit 1b9bb2f
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 1b9bb2f

Please sign in to comment.