Skip to content

Commit 8801bfc

Browse files
committed
Add trusted publishing
1 parent 4002ecd commit 8801bfc

5 files changed

Lines changed: 1411 additions & 3656 deletions

File tree

.github/workflows/publish.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
8+
jobs:
9+
publish:
10+
name: Publish to npm
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
contents: read
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: pnpm/action-setup@v4
18+
with:
19+
version: 10
20+
- uses: actions/setup-node@v4
21+
with:
22+
node-version: 24.x
23+
cache: pnpm
24+
registry-url: 'https://registry.npmjs.org'
25+
- run: pnpm install --frozen-lockfile
26+
- run: pnpm build
27+
- run: npm publish --access public --provenance

DEVELOPERS.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
## Demo for dev mode
22

33
http://localhost:3000/?config=https://jbrowse.org/demos/maf/hg38/config.json&session=share-jREsrEm0Q-&password=fRZjQ
4+
5+
## Publishing
6+
7+
just push a new tag using e.g.
8+
9+
```
10+
pnpm version minor
11+
```

eslint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ export default tseslint.config(
5757
'no-underscore-dangle': 'off',
5858
curly: 'error',
5959

60+
'no-extra-semi': 'off',
6061
'@typescript-eslint/no-explicit-any': 'off',
6162
'@typescript-eslint/explicit-module-boundary-types': 'off',
6263
'@typescript-eslint/ban-ts-comment': 'off',

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
"version": "1.5.1",
33
"license": "MIT",
44
"name": "jbrowse-plugin-mafviewer",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/GMOD/jbrowse-plugin-mafviewer.git"
8+
},
59
"keywords": [
610
"jbrowse",
711
"jbrowse2"
@@ -28,6 +32,7 @@
2832
"prepublishOnly": "node -e \"console.log('export const version = \\'' + require('./package.json').version + '\\'')\" > src/version.ts && git add -A src && git diff --cached --quiet || git commit -m '[skip ci] Bump version.ts'",
2933
"prepack": "yarn build",
3034
"preversion": "yarn lint",
35+
"version": "node -e \"console.log('export const version = \\'' + require('./package.json').version + '\\'')\" > src/version.ts && git add src/version.ts",
3136
"postversion": "git push --follow-tags"
3237
},
3338
"devDependencies": {
@@ -51,12 +56,12 @@
5156
"@types/node": "^25.6.0",
5257
"@types/react": "^19.2.14",
5358
"chalk": "^5.6.2",
54-
"esbuild": "^0.27.7",
59+
"esbuild": "^0.28.0",
5560
"eslint": "^10.2.0",
5661
"eslint-plugin-import": "^2.32.0",
5762
"eslint-plugin-react": "^7.37.5",
5863
"eslint-plugin-react-hooks": "^7.0.1",
59-
"eslint-plugin-unicorn": "^63.0.0",
64+
"eslint-plugin-unicorn": "^64.0.0",
6065
"jest-image-snapshot": "^6.5.2",
6166
"mobx": "^6.15.0",
6267
"mobx-react": "^9.2.1",
@@ -75,6 +80,7 @@
7580
},
7681
"dependencies": {
7782
"@gmod/bgzf-filehandle": "^6.0.18",
83+
"@mui/icons-material": "^7.3.10",
7884
"abortable-promise-cache": "^1.5.0",
7985
"buffer": "^6.0.3",
8086
"d3-array": "^3.2.4",

0 commit comments

Comments
 (0)