chore: publish storybook under main and fix npm package versioning (#2)

This commit is contained in:
Patric Stout
2023-11-12 15:43:22 +01:00
committed by GitHub
parent 12bf3bd7d2
commit 7977ceaf9f
2 changed files with 5 additions and 5 deletions

View File

@@ -1,4 +1,4 @@
name: Release
name: Publish
on:
release:
@@ -39,4 +39,4 @@ jobs:
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }}
directory: storybook-static
branch: ${{ github.event_name == 'push' && github.ref_name || github.event_name == 'repository_dispatch' && 'main' || format('pr/{0}', github.event.pull_request.number) }}
branch: ${{ github.event_name == 'release' && github.ref_name || format('pr/{0}', github.event.pull_request.number) }}

View File

@@ -22,9 +22,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
run: npm install
- name: Set version
run: |
# Remove the "v" from the version.
@@ -33,6 +30,9 @@ jobs:
sed -i 's/version = "0.0.0-git"/version = "'${VERSION}'"/' package.json
- name: Install dependencies
run: npm install
- name: Create NPM package
run: npm run build