Skip to content

Commit b46dbb7

Browse files
committed
Release 0.3.2
1 parent a2dfd13 commit b46dbb7

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/publish.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ on:
1414

1515
permissions:
1616
contents: write
17+
packages: write
1718
id-token: write
1819

1920
concurrency:
@@ -124,3 +125,12 @@ jobs:
124125
run: npm publish --access public --provenance
125126
env:
126127
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
128+
129+
- name: Publish to GitHub Packages
130+
run: |
131+
ORIGINAL_NAME="$(node -p "JSON.parse(require('fs').readFileSync('package.json','utf8')).name")"
132+
node -e "const p=require('./package.json');p.name='@EIHRTeam/xml';require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\n')"
133+
npm publish --registry=https://npm.pkg.github.com/
134+
node -e "const p=require('./package.json');p.name='${ORIGINAL_NAME}';require('fs').writeFileSync('package.json',JSON.stringify(p,null,2)+'\n')"
135+
env:
136+
NODE_AUTH_TOKEN: ${{ github.token }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"$schema": "https://json.schemastore.org/package.json",
33
"name": "@eihrteam/xml",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"description": "Convert SKLand Endfield Wiki public item JSON and XML locally.",
66
"license": "MIT",
77
"type": "module",

0 commit comments

Comments
 (0)