Skip to content

Merge branch 'develop' of github.com:mission-apprentissage/tables-cor… #138

Merge branch 'develop' of github.com:mission-apprentissage/tables-cor…

Merge branch 'develop' of github.com:mission-apprentissage/tables-cor… #138

Workflow file for this run

name: Publish SDK
on:
push:
branches: [ sdk ]
pull_request:
branches: [ sdk ]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 14
- uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-
- run: echo -e "//npm.pkg.github.com/:_authToken=$NPM_TOKEN\n@mission-apprentissage:registry=https://npm.pkg.github.com" > server/.npmrc
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Run Yarn Install
run: |
cd server
yarn install
- name: build sdk
run: |
cd server
yarn sdk:build
- name: publish sdk
run: |
cd server
yarn npm:release
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_SDK }}