chore: publish storybook under main and fix npm package versioning (#2)
This commit is contained in:
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -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) }}
|
||||
|
||||
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user