Publish Eslint Config #22
Workflow file for this run
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 Eslint Config | |
on: | |
push: | |
tags: | |
- '**' | |
jobs: | |
publish: | |
name: Publish package | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [10.x] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v1 | |
- name: Setup node & registry url for npm package registry | |
uses: actions/setup-node@v1 | |
with: | |
node-version: '10.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Publish to NPM Registry | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Setup registry url for github package registry | |
uses: actions/setup-node@v1 | |
with: | |
registry-url: 'https://npm.pkg.github.com' | |
- name: Publish to Github Package Repository | |
run: npm publish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create release | |
uses: actions/create-release@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: Release ${{ github.ref }} | |
draft: false | |
prerelease: false |