Skip to content

Commit

Permalink
Merge pull request #1 from ton-blockchain/npm-publish
Browse files Browse the repository at this point in the history
workflow for npm publish
  • Loading branch information
tolk-vm authored Nov 1, 2024
2 parents 1f4c2c6 + a59073e commit 629ece8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

0 comments on commit 629ece8

Please sign in to comment.