Skip to content

Commit

Permalink
Use actions to deploy to npm on release publish. Issue #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ciatph committed Mar 26, 2022
1 parent 633ada6 commit 69e869d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# This workflow will publish a NodeJS package to npm when a release is created

name: Publish to NPM

on:
release:
types: [published]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "csv-firestore",
"version": "1.0.7",
"version": "1.0.8",
"description": "Uploads CSV rows as documents to Firestore collections.",
"main": "index.js",
"directories": {
Expand Down

0 comments on commit 69e869d

Please sign in to comment.