Skip to content

Commit 13a0918

Browse files
Change to using npm to publish the package
1 parent b835851 commit 13a0918

File tree

5 files changed

+32
-29
lines changed

5 files changed

+32
-29
lines changed

.github/workflows/publish.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
1-
name: Publish NPM Package
2-
1+
name: Publish Package to npmjs
32
on:
43
release:
54
types: [published]
6-
75
jobs:
8-
publish:
6+
build:
97
runs-on: ubuntu-latest
108
permissions:
119
contents: read
12-
packages: write
13-
10+
id-token: write
11+
environment: production
1412
steps:
1513
- uses: actions/checkout@v4
16-
17-
- name: Set up Node.js
18-
uses: actions/setup-node@v4
14+
- uses: actions/setup-node@v4
1915
with:
2016
node-version: '24.x'
21-
registry-url: 'https://npm.pkg.github.com/'
22-
23-
- name: Install dependencies
24-
run: npm install
25-
26-
- name: Build package
27-
run: npm run build
28-
29-
- name: Publish to GitHub Packages Registry
30-
run: npm publish
31-
env:
32-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17+
registry-url: 'https://registry.npmjs.org'
18+
- run: npm ci
19+
- run: npm run build
20+
- name: Publish the package
21+
run: npm publish --provenance --access public

.npmrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Version 0.1.0 (Initial commit)
2+
3+
- Sets up the repository with typescript
4+
- Implements the BackendExtension with ApiKey support

README.md

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1-
# anaconda_extension
1+
# @runtimed/anaconda
22

3-
Anaconda-specific integrations for Runt
3+
This extension provides the Anaconda-specific customizations to the Runt Web.
4+
It is utilized on https://app.runt.run and integrates the api key API (with more integrations to come)
5+
6+
# Development
7+
8+
This is a simple typescript repository. You just `npm install` to set up dependencies. When you're ready to make a commit, run `npm run build` and `npm run format` to ensure the types pass & format the files respectively. If you forget, the CI will check it for you
9+
10+
# Publishing
11+
12+
1. Create a new branch
13+
1. Update the [CHANGELOG.md](./CHANGELOG.md)
14+
1. Change the version in package.json
15+
1. run `npm install` to update the package-lock.json file
16+
1. Commit, and create a PR
17+
1. Merge the PR into main
18+
1. Create a new release. Copy over the contents from the [CHANGELOG](./CHANGELOG.md)
19+
1. The [publish](./.github/workflows/publish.yml) action will automatically push the release to npm

package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,6 @@
2323
"dist",
2424
"README.md"
2525
],
26-
"publishConfig": {
27-
"registry": "https://npm.pkg.github.com"
28-
},
2926
"scripts": {
3027
"test": "echo \"Error: no test specified\" && exit 1",
3128
"format": "prettier --write .",

0 commit comments

Comments
 (0)