Skip to content

Commit

Permalink
feat: github action to publish on npm (#98)
Browse files Browse the repository at this point in the history
* feat: github action to publish on npm

* chore(github-actions-npm): remove travis integration

* chore(github-actions-npm): update github action on tag creation

Co-authored-by: Pablo Albaladejo <[email protected]>
  • Loading branch information
Ivan Esteban and Pablo Albaladejo committed Oct 18, 2021
1 parent 947f529 commit e57372b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 34 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/publish-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish plugin
on:
push:
branches:
- 'main'
tags:
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish-npm:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.17.0]
steps:
- uses: actions/checkout@v2
# setup node env
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
# install node_modules
- name: Install dependencies
run: npm ci --only=production
# publish to npm
- name: Publish package
run: npm publish --ignore-scripts --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

0 comments on commit e57372b

Please sign in to comment.