Skip to content

Commit

Permalink
Merge pull request #42 from njam/npm-publish
Browse files Browse the repository at this point in the history
Publish package to NPM with github action
  • Loading branch information
njam committed Oct 6, 2023
2 parents 0cd618a + e75518f commit ad8a7d1
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 20 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: publish

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: test

on: [ push ]

Expand Down
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit ad8a7d1

Please sign in to comment.