File tree Expand file tree Collapse file tree 3 files changed +65
-2
lines changed
Expand file tree Collapse file tree 3 files changed +65
-2
lines changed Original file line number Diff line number Diff line change 9595 gh workflow run release.yml --ref $new_tag
9696 env :
9797 GH_TOKEN : ${{ github.token }}
98+
99+ publish :
100+ name : Publish to npm
101+ needs : build
102+ runs-on : ubuntu-latest
103+ if : github.ref_type != 'tag' && inputs.release_type != null
104+ steps :
105+ - name : Checkout code
106+ uses : actions/checkout@v4
107+ with :
108+ fetch-depth : 0
109+ token : ${{ github.token }}
110+
111+ - name : Setup Node.js
112+ uses : actions/setup-node@v4
113+ with :
114+ node-version : ' 22'
115+ registry-url : ' https://registry.npmjs.org'
116+
117+ - name : Setup pnpm
118+ uses : pnpm/action-setup@v4
119+ with :
120+ version : 10.4.1
121+
122+ - name : Install dependencies
123+ run : pnpm install --frozen-lockfile
124+
125+ - name : Build package
126+ run : pnpm build
127+
128+ - name : Publish to npm
129+ run : npm publish --access public
130+ env :
131+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ # Source files
2+ src /
3+ tests /
4+
5+ # Config files
6+ .github /
7+ .vscode /
8+ .editorconfig
9+ .eslintrc
10+ .prettierrc
11+ tsconfig.json
12+ jest.config.js
13+
14+ # Git files
15+ .git /
16+ .gitignore
17+
18+ # Build artifacts
19+ node_modules /
20+
21+ # Misc
22+ * .log
23+ .DS_Store
Original file line number Diff line number Diff line change 11{
2- "name" : " gql-federation-schema-parser" ,
2+ "name" : " @tiagoboeing/ gql-federation-schema-parser" ,
33 "version" : " 1.1.1" ,
44 "description" : " CLI tool to parse GraphQL schemas and generate TypeScript definitions for use in a GraphQL Federation gateway." ,
55 "main" : " build/src/index.js" ,
66 "type" : " module" ,
7+ "private" : false ,
8+ "publishConfig" : {
9+ "access" : " public"
10+ },
711 "bin" : {
812 "gql-federation-schema-parser" : " ./dist/index.js"
913 },
1014 "author" : {
1115 "name" : " Tiago Boeing" ,
12161317 },
18+ "repository" : " github:tiagoboeing/graphql-federation-schema-parser" ,
1419 "engines" : {
1520 "node" : " >=22.0.0" ,
1621 "bun" : " >=1.0.0"
2126 "build" : " bun build ./src/index.ts --target=node --outdir=./dist --minify" ,
2227 "build:executable" : " bun build ./src/index.ts --compile --outfile=./dist/gql-federation-schema-parser" ,
2328 "postbuild:executable" : " chmod +x ./dist/gql-federation-schema-parser" ,
24- "execute" : " bun src/index.ts"
29+ "execute" : " bun src/index.ts" ,
30+ "prepublishOnly" : " pnpm build"
2531 },
2632 "keywords" : [
2733 " graphql" ,
You can’t perform that action at this time.
0 commit comments