-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (39 loc) · 1.08 KB
/
typescript-gql-codegen.yaml
File metadata and controls
41 lines (39 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
permissions:
id-token: write
name: "typescript gql-codegen"
on:
push:
paths:
- typescript/gql-codegen/**
- .github/workflows/typescript-gql-codegen.yaml
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v6
with:
node-version: 25
registry-url: https://registry.npmjs.org
- name: install
working-directory: typescript/gql-codegen
run: npm ci
- name: lint
working-directory: typescript/gql-codegen
run: npm run lint:ci
- name: test
working-directory: typescript/gql-codegen
env:
FORCE_COLOR: 1
run: npm run test
- name: build
working-directory: typescript/gql-codegen
run: npm run build
- name: publish
if: ${{ github.ref_type == 'tag' }}
working-directory: typescript/gql-codegen/dist
run: |
npm version $GITHUB_REF_NAME --no-git-tag-version --no-commit-hooks
npm publish --access public