Skip to content

Commit 9835b61

Browse files
committed
Fix npm branch reference
1 parent 4c6480b commit 9835b61

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/build-test-publish-superscript-npm.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build, Test, and Publish Superscript NPM Package
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [ master ]
66
pull_request:
7-
branches: [ main ]
7+
branches: [ master ]
88
workflow_dispatch:
99

1010
permissions:
@@ -137,7 +137,7 @@ jobs:
137137
138138
# Version management and publishing
139139
- name: Check for version changes
140-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
140+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
141141
id: version_check
142142
run: |
143143
cd wasm
@@ -163,7 +163,7 @@ jobs:
163163
fi
164164
165165
- name: Prepare for NPM publish
166-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
166+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
167167
run: |
168168
cd wasm
169169
# Check if all required files exist
@@ -173,15 +173,15 @@ jobs:
173173
fi
174174
175175
- name: Publish to NPM
176-
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
176+
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
177177
run: |
178178
cd wasm
179179
npm publish --access public
180180
env:
181181
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
182182

183183
- name: Commit version change
184-
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && steps.version_check.outputs.version_changed == 'true'
184+
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && steps.version_check.outputs.version_changed == 'true'
185185
run: |
186186
git config --global user.name 'GitHub Actions'
187187
git config --global user.email 'actions@github.com'

0 commit comments

Comments
 (0)