Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
MortallicaXxX committed Apr 13, 2024
1 parent b4dacd0 commit 6455b97
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 10 deletions.
26 changes: 18 additions & 8 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,25 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses : actions/checkout@v2
- uses : actions/setup-node@v1
- name: Checkout code
uses : actions/checkout@v2

- name: Setup Node.js
uses : actions/setup-node@v1
with :
node-version : 16
node-version : 18
registry-url : https://npm.pkg.github.com
scope : '@Odyssee-Software'
- run: npm install --force
- run: npx --yes tsc
- run: npm publish
env :
NODE_AUTH_TOKEN : ${{secrets.PUBLISH_TOKEN}}

- name: Add authentication token to ~/.npmrc
run: echo "@Odyssee-Software:registry=https://npm.pkg.github.com/" > .npmrc && echo "//npm.pkg.github.com/:_authToken=${{secrets.PUBLISH_TOKEN}}" >> .npmrc

- name: Install dependencies
run: npm install

- name: Build TypeScript files
run: npx --yes tsc

- name: Publish to GitHub Packages
run: npm publish

2 changes: 1 addition & 1 deletion modules/states
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "thorium-framework",
"name": "@odyssee-software/thorium-framework",
"version": "1.0.10",
"description": "",
"main": "./dist/index.js",
Expand All @@ -17,6 +17,13 @@
"doc:modules:states": "cd ./modules/core && node run build:doc",
"doc:modules": "npm run doc:modules:context && npm run doc:modules:core && npm run doc:modules:states"
},
"repository": {
"type": "git",
"url": "https://github.com/Odyssee-Software/thorium-framework.git"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com/@Odyssee-Sofware"
},
"author": "",
"license": "ISC",
"dependencies": {
Expand Down

0 comments on commit 6455b97

Please sign in to comment.