Skip to content

NPM publish

NPM publish #4

Workflow file for this run

name: NPM publish
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Read .tool-versions
uses: marocchino/tool-versions-action@v1
id: versions
- name: Set up Node
uses: actions/setup-node@v1
with:
node-version: ${{ steps.versions.outputs.nodejs}}
- name: Install dependencies
run: yarn install
# - name: Lint JS
# run: yarn lint:js
# - name: Lint JS
# run: yarn lint:scss
# - name: Compile SASS
# run: yarn compile-sass
- name: Publish the package to GPR
run: |
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
npm config set @outdoormap:registry https://npm.pkg.github.com/
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}