Skip to content

Delete package-lock.json (#63) #31

Delete package-lock.json (#63)

Delete package-lock.json (#63) #31

Workflow file for this run

name: Release publish
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
- run:
npm install -g npm
npm ci
npm run build
npm test
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
always-auth: true
- name: Extract PACKAGE_VERSION
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Publish
if: contains(steps.package-version.outputs.current-version, 'dev') != true
run: |
npm install -g npm
npm ci
npm run build
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_TKN}}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://npm.pkg.github.com/
- name: Extract PACKAGE_VERSION
id: package-version
uses: martinbeentjes/npm-get-version-action@master
- name: Publish
if: contains(steps.package-version.outputs.current-version, 'dev') != true
run: |
npm install -g npm
npm ci
npm run build
npm init --scope=nrchkb -y
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GHUB_TKN}}