Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
fingerartur committed Nov 20, 2023
1 parent 60c9bda commit 8dee10e
Showing 1 changed file with 45 additions and 42 deletions.
87 changes: 45 additions & 42 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,48 +12,48 @@ env:
VERSION: 0.7.7

jobs:
# publish-to-npm:
# name: Publish to NPM
# runs-on: [ubuntu-latest]
# steps:
# - name: Checkout
# uses: actions/checkout@v3

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

# - name: Write NPM RC
# run: |
# echo '@castlabs:registry=https://registry.npmjs.org' > .npmrc
# echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc

# - name: Set Package Version
# run: npm --no-git-tag-version --allow-same-version version ${{ env.VERSION }}

# # TODO remove this debug
# - name: Debug Echo Version
# run: echo ${{ env.VERSION }}
# # TODO remove this debug
# - name: Debug Cat package.json
# run: cat package.json

# - name: Install dependencies
# run: npm ci

# - name: Build
# run: npm run build

# # TODO NOT dry run
# - name: Publish to NPM
# run: npm publish --dry-run

# - name: 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-to-npm:
name: Publish to NPM
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v3

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

- name: Write NPM RC
run: |
echo '@castlabs:registry=https://registry.npmjs.org' > .npmrc
echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
- name: Set Package Version
run: npm --no-git-tag-version --allow-same-version version ${{ env.VERSION }}

# TODO remove this debug
- name: Debug Echo Version
run: echo ${{ env.VERSION }}
# TODO remove this debug
- name: Debug Cat package.json
run: cat package.json

- name: Install dependencies
run: npm ci

- name: Build
run: npm run build

# TODO NOT dry run
- name: Publish to NPM
run: npm publish --dry-run

- name: 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:
Expand Down Expand Up @@ -85,6 +85,9 @@ jobs:
# - name: Debug Storybook help
# run: npm run storybook-help

- name: Install dependencies
run: npm ci

- name: Build Storybook
run: npm run build-storybook

Expand Down

0 comments on commit 8dee10e

Please sign in to comment.