Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 23 additions & 3 deletions .github/workflows/lab4-workflow.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,31 @@
name: Publish Package to GitHub NPM Registry

on:
????:

on:
push:
branches:
- main
release:
types: published

jobs:
npm-package:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: setup nodejs
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com/'

- name: install Dependencies
run: npm install

- name: Publish Package
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Solar System",
"version": "6.7.6",
"name": "@yashtnaik/lab4",
"version": "7.7.7",
"author": "Siddharth Barahalikar <barahalikar.siddharth@gmail.com>",
"homepage": "https://www.linkedin.com/in/barahalikar-siddharth/",
"license": "MIT",
Expand Down