Skip to content

Commit

Permalink
Merge pull request #40 from simonsobs/dev
Browse files Browse the repository at this point in the history
Add an Actions workflow to publish to npmjs
  • Loading branch information
TaiSakuma authored Mar 26, 2024
2 parents 72276e6 + 564d2c8 commit afc7aa9
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/npmjs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Upload to npmjs

on:
# release:
# types: [created]
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- run: yarn
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
![npm](https://img.shields.io/npm/v/nextline-web)
[![Unit tests](https://github.com/simonsobs/nextline-web/actions/workflows/unit-test.yml/badge.svg)](https://github.com/simonsobs/nextline-web/actions/workflows/unit-test.yml)

# Nextline-web
Expand Down

0 comments on commit afc7aa9

Please sign in to comment.