vector-im-hydrogen-web/.github/workflows/sdk-release.js.yml

51 lines
1.2 KiB
YAML
Raw Normal View History

2023-05-04 18:35:12 +02:00
name: Publish to npm
on:
push:
tags:
2023-05-04 21:18:16 +02:00
- "sdk-v**"
2023-05-04 18:35:12 +02:00
jobs:
npm:
name: Publish to npm
runs-on: ubuntu-latest
2023-05-04 22:02:18 +02:00
strategy:
matrix:
node-version: [18.1.0]
2023-05-04 18:35:12 +02:00
steps:
- name: 🧮 Checkout code
uses: actions/checkout@v3
- name: 🔧 Yarn cache
uses: actions/setup-node@v3
with:
cache: "yarn"
registry-url: "https://registry.npmjs.org"
- name: 🔨 Install dependencies
run: "yarn install --prefer-offline --frozen-lockfile"
- name: Run Unit tests
run: "yarn test"
- name: Run Lint Checks
run: "yarn run lint-ci"
- name: Run Typescript Checks
run: "yarn run tsc"
- name: Run SDK tests
run: "yarn test:sdk"
- name: Build SDK
run: "yarn build:sdk"
- name: 🚀 Publish to npm
id: npm-publish
uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
package: ./target
dry-run: true