Skip to content

Commit

Permalink
Merge branch 'master' of github.com:userscripters/generate-headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Oaphi committed Aug 11, 2021
2 parents e59d11b + 373840e commit 6f43ae7
Show file tree
Hide file tree
Showing 3 changed files with 388 additions and 237 deletions.
72 changes: 40 additions & 32 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,47 @@
name: Publish a package

on:
release:
types: [published]
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Using Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Update npm version to latest
run: npm install -g npm@latest
- name: Install dependencies
run: npm install
- name: Compile
run: npm run build
- name: Run tests
run: npm run test
steps:
- uses: actions/checkout@v2
- name: Using Node 14
uses: actions/setup-node@v1
with:
node-version: 14
- name: Update npm version to latest
run: npm install -g npm@latest
- name: Install dependencies
run: |
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
npm install
env:
NODE_AUTH_TOKEN: ${{github.token}}
- name: Compile
run: npm run build
- name: Run tests
run: npm run test

publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com
scope: "@${{github.repository_owner}}"
- run: npm install
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.PAT}}
publish:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://npm.pkg.github.com
scope: "@${{github.repository_owner}}"
run: |
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
npm install
env:
NODE_AUTH_TOKEN: ${{github.token}}
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.PAT}}
Loading

0 comments on commit 6f43ae7

Please # to comment.