mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
e1ff6de9ef
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
36 lines
760 B
YAML
36 lines
760 B
YAML
name: Release Packages
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3.2.0
|
|
- uses: actions/setup-node@v3.5.1
|
|
with:
|
|
node-version: 16
|
|
- 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.2.0
|
|
- uses: actions/setup-node@v3.5.1
|
|
with:
|
|
node-version: 16
|
|
registry-url: https://registry.npmjs.org/
|
|
- run: npm ci
|
|
- run: npm run shipit
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|