Skip to content

Commit d358161

Browse files
committed
package release
1 parent 00c4b0c commit d358161

2 files changed

Lines changed: 23 additions & 3 deletions

File tree

.github/workflows/publish-release.yaml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,24 @@ jobs:
2323

2424
- run: npm publish --provenance --access public
2525
env:
26-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
27+
28+
github:
29+
runs-on: ubuntu-latest
30+
permissions:
31+
contents: read
32+
id-token: write
33+
steps:
34+
- uses: actions/checkout@v4
35+
36+
- uses: actions/setup-node@v4
37+
with:
38+
node-version: '20.x'
39+
registry-url: 'https://npm.pkg.github.com'
40+
scope: '@hostinger'
41+
42+
- run: npm install
43+
44+
- run: npm publish --provenance --access public
45+
env:
46+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "@hostinger/api",
3-
"version": "0.0.5",
2+
"name": "hostinger/api",
3+
"version": "0.0.1",
44
"description": "Hostinger API TypeScript SDK",
55
"author": "Hostinger",
66
"repository": {

0 commit comments

Comments
 (0)