Skip to content

Merge pull request #17 from karolyp/fix-publish-command #10

Merge pull request #17 from karolyp/fix-publish-command

Merge pull request #17 from karolyp/fix-publish-command #10

Workflow file for this run

name: Release
on:
push:
branches:
- master
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
build-and-release:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'pnpm'
- name: Install dependencies
run: pnpm install --frozen-lockfile --ignore-scripts
- name: Build
run: pnpm build
- name: Set npm token
run: pnpm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}}
- name: Create Release Pull Request or Publish to npm
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
with:
publish: pnpm publish