awesome-cordova-plugins/.github/workflows/npmpublish.yml

36 lines
760 B
YAML
Raw Normal View History

2021-09-27 23:24:28 +08:00
name: Release Packages
2019-10-30 23:43:05 +08:00
on:
2021-09-27 23:37:22 +08:00
workflow_dispatch:
2019-10-30 23:43:05 +08:00
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/setup-node@v2.4.1
2019-10-30 23:43:05 +08:00
with:
2020-11-05 20:26:49 +08:00
node-version: 14
2019-10-30 23:43:05 +08:00
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Readmes
run: npm run readmes
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.5
- uses: actions/setup-node@v2.4.1
2019-10-30 23:43:05 +08:00
with:
2020-11-05 20:26:49 +08:00
node-version: 14
2019-10-30 23:43:05 +08:00
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run shipit
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}