Skip to content

Merge pull request #5 from simonkovtyk/feat/2.0.0-next.0 #5

Merge pull request #5 from simonkovtyk/feat/2.0.0-next.0

Merge pull request #5 from simonkovtyk/feat/2.0.0-next.0 #5

Workflow file for this run

name: Deploy
on:
push:
branches:
- main
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