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@v3.5.2
- uses: actions/setup-node@v3.6.0
2019-10-30 23:43:05 +08:00
with:
2022-10-16 00:19:39 +08:00
node-version: 16
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@v3.5.2
- uses: actions/setup-node@v3.6.0
2019-10-30 23:43:05 +08:00
with:
2022-10-16 00:19:39 +08:00
node-version: 16
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}}