Skip to content

Merge branch 'dsinghvi/patch-sdk' of github.com:OnedocLabs/fileforge-… #65

Merge branch 'dsinghvi/patch-sdk' of github.com:OnedocLabs/fileforge-…

Merge branch 'dsinghvi/patch-sdk' of github.com:OnedocLabs/fileforge-… #65

Workflow file for this run

name: ci
on: [push]
jobs:
compile:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Compile
run: yarn && yarn build
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Run tests
run: yarn && yarn test
env:
FILEFORGE_API_KEY: ${{ secrets.FILEFORGE_API_KEY }}
publish:
needs: [ compile, test ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up node
uses: actions/setup-node@v3
with:
node-version: 20
- name: Install dependencies
run: yarn install
- name: Build
run: yarn build
- name: Publish to npm
run: |
npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}