Skip to content

Commit

Permalink
Merge pull request #66 from lazaralex98/alexlazar/blu-2623-npm-publis…
Browse files Browse the repository at this point in the history
…h-latest-version-of-the-sdk

[BLU-2623] NPM publish latest version of the sdk
  • Loading branch information
mauricedesaxe authored Jan 3, 2023
2 parents 2a94942 + c225c59 commit c9e0a52
Showing 1 changed file with 33 additions and 1 deletion.
34 changes: 33 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,38 @@ on:
release:
types: [published]
jobs:
build:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}

- name: Install packages
run: yarn

- name: Compile code
run: yarn build:clean

- name: Format
run: yarn format:check

- name: Lint
run: yarn lint

- name: Test
run: yarn test

publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -14,6 +45,7 @@ jobs:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn build:clean
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c9e0a52

Please sign in to comment.