diff --git a/.github/workflows/lab4-workflow.yml b/.github/workflows/lab4-workflow.yml index fecb480..c783fc5 100644 --- a/.github/workflows/lab4-workflow.yml +++ b/.github/workflows/lab4-workflow.yml @@ -1,11 +1,22 @@ name: Publish Package to GitHub NPM Registry on: - ????: - + release: + types: published jobs: npm-package: runs-on: ubuntu-latest steps: - name: Checkout Repository uses: actions/checkout@v4 + - name: Setup NodeJs Version - 20.x.. + uses: actions/setup-node@v5 + with: + node-version: '20.x' + registy-url: 'https.//npm.pkg.github.com' + - name: Install dependencies + run : npm install + - name: publish to Gibhub Registry + run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/package.json b/package.json index 7548a02..ce79acc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "Solar System", - "version": "6.7.6", + "name": "@SteveLoic/lab4", + "version": "7.7.7", "author": "Siddharth Barahalikar ", "homepage": "https://www.linkedin.com/in/barahalikar-siddharth/", "license": "MIT",