Skip to content

Commit

Permalink
add publish ci
Browse files Browse the repository at this point in the history
  • Loading branch information
napalmpapalam committed Mar 3, 2023
1 parent 49a0e16 commit 5665886
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Publish to NPM

on:
push:
tags:
- '*.*.*'

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
nodejs: [16]

steps:
- uses: actions/checkout@v2
- name: Build on Node.js ${{ matrix.nodejs }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.nodejs }}
- run: yarn install
- run: yarn build
- run: yarn lint
- run: yarn test
env:
CI: true

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.nodejs }}
- name: Publish
run: |
yarn install
yarn build
yarn publish-latest
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- `all`: Build to CommonJS and ES modules
- `all`: `tsc-alias` package to use aliases in TypeScript
- `root`: `yarn rsc` Release Sanity Check script
- `root`: Publish to NPM GitHub Action

### Fixed
- `@rarimo/provider`: Solflare wallet naming [issue](https://github.com/rarimo/js-sdk/issues/12)
Expand Down

0 comments on commit 5665886

Please sign in to comment.