Skip to content

Commit 522de73

Browse files
Attempt fix for GH publishing (#37)
* Attempt fix for GH publishing * Increase version for test release
1 parent 4d8fd63 commit 522de73

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,15 @@ jobs:
3333
run: |
3434
npm publish
3535
36+
- name: Set up Node.js for GH
37+
uses: actions/setup-node@v4
38+
with:
39+
node-version: '20.x'
40+
registry-url: 'https://npm.pkg.github.com'
41+
3642
- name: Publish to GitHub Packages
3743
env:
3844
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3945
run: |
4046
npm run gh-release-package-swap
41-
npm publish --registry=https://npm.pkg.github.com
47+
npm publish

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "a-simple-switch",
3-
"version": "0.9.6",
3+
"version": "0.9.7",
44
"description": "Vanilla JS/CSS Switch UI element",
55
"main": "release/commonjs/index.js",
66
"files": [

0 commit comments

Comments
 (0)