Skip to content

Merge pull request #42 from SSWConsulting/fix-dependencies #34

Merge pull request #42 from SSWConsulting/fix-dependencies

Merge pull request #42 from SSWConsulting/fix-dependencies #34

Workflow file for this run

name: Publish Npm Package
on:
push:
branches: [ main ]
paths: [ package.json ]
jobs:
publish-gpr:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.0.0]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org
- name: Install dependencies 📦️
run: yarn install
- name: build
run: |
npm run build
- name: deploy
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
BRANCH: package
FOLDER: dist
- name: NPM Publish
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}