diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 179d62d..e8e9dcb 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,4 +1,4 @@ -# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# This workflow will run tests using node and then publish a package to NPM when a release is created # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages name: Node.js Package @@ -6,29 +6,21 @@ name: Node.js Package on: release: types: [created] - workflow_dispatch: + workflow_dispatch: {} + +permissions: + id-token: write # Required for OIDC jobs: - build: + publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v6 + - uses: actions/setup-node@v6 with: - node-version: 20 - - run: npm ci + node-version: '24' + registry-url: 'https://registry.npmjs.org' + package-manager-cache: false # never use caching in release builds + - run: npm install - run: npm test - - publish-npm: - needs: build - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 20 - registry-url: https://registry.npmjs.org/ - - run: npm ci - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/package.json b/package.json index 69cfb6a..9e1d0e2 100644 --- a/package.json +++ b/package.json @@ -16,6 +16,13 @@ "dist" ], "homepage": "https://github.com/TACC/Core-Components", + "repository": { + "type": "git", + "url": "git+https://github.com/TACC/Core-Components.git" + }, + "bugs": { + "url": "https://github.com/TACC/Core-Components/issues" + }, "scripts": { "start": "storybook dev --port 9000", "build-demo": "storybook build --output-dir demo",