Delete package-lock.json (#63) #31
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: 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}} |