Skip to content

Commit

Permalink
Testing npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
troychaplin committed Feb 24, 2024
1 parent a013bc9 commit c62ba71
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,23 @@ jobs:
build-and-deploy:
name: Build storybook and deploy to github pages
runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout
- name: 🛎️ Checkout
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: "21.x"

- name: Install dependencies
- name: 📦 Install
run: npm install

- name: Build Storybook
- name: 🔧 Build
run: npm run build:storybook
env:
NODE_OPTIONS: --max_old_space_size=4096
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,16 @@ on:
jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 21.x
node-version: 18
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm run build
- run: npm run publish --access public

- run: yarn install
- run: yarn build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit c62ba71

Please sign in to comment.