build(deps-dev): bump word-wrap from 1.2.3 to 1.2.4 #59
This file contains 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: publish | |
on: | |
push: | |
branches-ignore: | |
- '*' | |
tags: | |
- '*' | |
defaults: | |
run: | |
shell: bash | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
build: | |
name: ${{ matrix.os }} ${{ matrix.target }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 120 | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
target: [16.x] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup node@${{ matrix.target }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.target }} | |
registry-url: 'https://registry.npmjs.org' | |
- name: List versions | |
run: | | |
node -v && npm -v && which npm | |
- name: Install dependencies | |
run: | | |
npm ci | |
- name: Publish to npm (Prerelease) | |
if: contains(github.ref, '-') == true | |
run: | | |
npm config list | |
npm publish . --tag=next | |
- name: Publish to npm | |
if: contains(github.ref, '-') == false | |
run: | | |
npm config list | |
npm publish . | |
# See https://github.com/actions/setup-node/issues/73. | |
# - name: Setup node@${{ matrix.target }} | |
# uses: actions/setup-node@v1 | |
# with: | |
# node-version: ${{ matrix.target }} | |
# registry-url: 'https://npm.pkg.github.com/' | |
# scope: '@motss' | |
# - name: Publish to GPR (RC) | |
# if: success() && contains(github.ref, '-rc') == true | |
# run: | | |
# npm config list | |
# npm publish . --tag=next | |
# - name: Publish to GPR | |
# if: success() && contains(github.ref, '-rc') == false | |
# run: | | |
# npm config list | |
# npm publish . |