Skip to content

Merge pull request #2 from Dentity-Development/ft/ci-cd #1

Merge pull request #2 from Dentity-Development/ft/ci-cd

Merge pull request #2 from Dentity-Development/ft/ci-cd #1

Workflow file for this run

name: Deployment CI
on:
push:
branches: ['release']
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn install
- run: yarn build && touch dist/.nojekyll
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v4
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish
run: npm publish --//registry.npmjs.org/:_authToken="${{ secrets.NPM_TOKEN }}"