Skip to content

Merge pull request #1 from ton-blockchain/npm-publish #1

Merge pull request #1 from ton-blockchain/npm-publish

Merge pull request #1 from ton-blockchain/npm-publish #1

Workflow file for this run

on:
push:
branches:
- master
name: Build, Test and Publish npm
jobs:
publish:
name: Publish npm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: '20.x'
always-auth: true
- name: Install Yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn
- name: Build
run: yarn build
- name: Test
run: yarn test
- name: Publish
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: yarn publish --access public