NPM publish #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}} |