mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-22 16:53:57 +08:00
36 lines
761 B
Groff
36 lines
761 B
Groff
![]() |
- name: Cache
|
||
|
uses: actions/cache@v2.1.6
|
||
|
name: Node.js Package
|
||
|
|
||
|
on:
|
||
|
release:
|
||
|
types: [created]
|
||
|
|
||
|
jobs:
|
||
|
build:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
with:
|
||
|
node-version: 12
|
||
|
- run: npm ci
|
||
|
- run: npm test
|
||
|
|
||
|
publish-gpr:
|
||
|
needs: build
|
||
|
runs-on: ubuntu-latest
|
||
|
permissions:
|
||
|
packages: write
|
||
|
contents: read
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
with:
|
||
|
node-version: 12
|
||
|
registry-url: https://npm.pkg.github.com/
|
||
|
- run: npm ci
|
||
|
- run: npm publish
|
||
|
env:
|
||
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}https://beaconcha.in/dashboard?validators=27156
|