Skip to content

chore(deps): bump @openfga/sdk from 0.2.6 to 0.2.8 #636

chore(deps): bump @openfga/sdk from 0.2.6 to 0.2.8

chore(deps): bump @openfga/sdk from 0.2.6 to 0.2.8 #636

Workflow file for this run

name: Build, Test and Publish
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x, 20.x]
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
always-auth: false
cache: 'npm'
- name: Update npm
run: npm i -g npm
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: Update npm
run: npm i -g npm
- name: Install dependencies
run: npm ci
- name: Build grammar
run: npm run build:grammar
- name: Audit dependencies
run: npm audit
- name: Check for circular dependencies
run: npx madge --circular . --extensions ts,js
# Run Prettier
- name: Run Prettier
run: npm run format:check
# Run ESLint
- name: Run eslint
run: npm run lint
- name: Run tests
run: npm test
publish:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: [build, test]
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: '16'
registry-url: 'https://registry.npmjs.org'
scope: '@openfga'
always-auth: false
cache: 'npm'
- name: Update npm
run: npm i -g npm
- name: Install dependencies
run: npm ci
- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
create-release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
needs: publish
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: Roang-zero1/github-create-release-action@5cf058ddffa6fa04e5cda07c98570c757dc4a0e1
with:
version_regex: ^v[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}