Skip to content

Commit

Permalink
Merge 421475b into deaa78d
Browse files Browse the repository at this point in the history
  • Loading branch information
yen-tt committed Jun 8, 2021
2 parents deaa78d + 421475b commit 2d9edbd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/npm_publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: NPM publish on new release

on:
release:
types: [created]
branches:
- master

jobs:
npm-publish:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [15.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm run prepublishOnly
- run: npm publish
- run: npm run postpublish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"javascript",
"vanilla"
],
"files": [
"dist"
],
"dependencies": {
"@mapbox/mapbox-gl-language": "^0.10.1",
"@yext/answers-core": "^1.2.0-alpha.0",
Expand Down

0 comments on commit 2d9edbd

Please sign in to comment.