Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
fingerartur committed Nov 20, 2023
1 parent fd82496 commit d350213
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,27 @@ env:
VERSION: 0.7.7

permissions:
id-token: write
contents: read
pull-requests: write
id-token: write # This is required for aws-actions/configure-aws-credentials
contents: read # This is required for actions/checkout

jobs:
publish:
name: Publish a new version
name: Publish
runs-on: [ubuntu-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Node
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
cache: npm

- name: Install dependencies
- name: Install Dependencies
run: npm ci

- name: Write NPM RC
- name: Write NPM RC File
run: |
echo '@castlabs:registry=https://registry.npmjs.org' > .npmrc
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
Expand Down Expand Up @@ -70,7 +69,7 @@ jobs:

# Is there a dry run? Let's perhaps try version 0.0.1
# - name: Upload to S3
# run: aws s3 cp --recursive “./dist/storybook "s3://players-castlabs-com-root/react-dom/${{ env.VERSION }}/"
# run: aws s3 cp --dryrun --recursive “./dist/storybook" "s3://players-castlabs-com-root/react-dom/${{ env.VERSION }}/"

# Let’s keep the default cache policy which is 1 day
# This will publish to https://players.castlabs.com/react-dom (I hope)
Expand Down

0 comments on commit d350213

Please sign in to comment.