Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: acm-uiuc/js-shared
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.0
Choose a base ref
...
head repository: acm-uiuc/js-shared
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
  • 9 commits
  • 3 files changed
  • 1 contributor

Commits on Jun 8, 2025

  1. also publish to npmjs

    devksingh4 committed Jun 8, 2025
    Copy the full SHA
    2041c35 View commit details
  2. fix workflow name

    devksingh4 committed Jun 8, 2025
    Copy the full SHA
    1ac7e6e View commit details
  3. fix registry

    devksingh4 committed Jun 8, 2025
    Copy the full SHA
    50db160 View commit details
  4. use npm directly

    devksingh4 committed Jun 8, 2025
    Copy the full SHA
    6073562 View commit details
  5. add registry url

    devksingh4 committed Jun 8, 2025
    Copy the full SHA
    147abbe View commit details
  6. Copy the full SHA
    cd500b2 View commit details
  7. update

    devksingh4 committed Jun 8, 2025
    Copy the full SHA
    65dda7e View commit details
  8. Update package.json

    devksingh4 authored Jun 8, 2025
    Copy the full SHA
    569b815 View commit details
  9. Copy the full SHA
    298a6f9 View commit details
Showing with 12 additions and 15 deletions.
  1. +7 −6 .github/workflows/{publish.yml → publish-npm.yml}
  2. +4 −8 package.json
  3. +1 −1 src/orgs.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
name: Publish package to GitHub Packages
name: Publish package to NPM
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
scope: "@acm-uiuc"
registry-url: "https://registry.npmjs.org"

- run: yarn build
- run: yarn publish
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12 changes: 4 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
{
"name": "@acm-uiuc/js-shared",
"version": "2.0.0",
"version": "2.1.0",
"description": "ACM UIUC Shared JS code",
"main": "dist/index.js",
"module": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc"
},
"./*": {
"import": "./dist/*.mjs",
"require": "./dist/*.js",
"types": "./dist/*.d.ts"
},
"files": [
"dist"
],
@@ -30,6 +26,6 @@
"typescript": "^5.8.3"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
"registry": "https://registry.npmjs.org"
}
}
}
2 changes: 1 addition & 1 deletion src/orgs.ts
Original file line number Diff line number Diff line change
@@ -32,4 +32,4 @@ export const CommitteePartnerList = ["Reflections | Projections", "HackIllinois"

export const CoreOrganizationList = ["ACM", ...SIGList, ...CommitteeCoreList] as [string, ...string[]];

export const AllOrganizationList = [...CoreOrganizationList, ...CommitteePartnerList]
export const AllOrganizationList = [...CoreOrganizationList, ...CommitteePartnerList] as [string, ...string[]];