Skip to content

Merge pull request #2 from simonkovtyk/main #3

Merge pull request #2 from simonkovtyk/main

Merge pull request #2 from simonkovtyk/main #3

Workflow file for this run

name: Deploy
on:
push:
branches:
- release
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install
uses: pnpm/action-setup@v4
with:
version: latest
run_install: true
- name: Build
run: tsc
- name: Assets
run: |
cp package.json dist/package.json
cp README.md dist/README.md
- name: Config
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd dist
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
echo "registry=https://registry.npmjs.org/" >> ~/.npmrc
- name: Publish
run: |
cd dist
pnpm publish --access public --no-git-checks