mirror of
https://github.com/cupcakearmy/occulto.git
synced 2024-12-21 16:46:30 +00:00
release workflow
This commit is contained in:
parent
1d9ed32438
commit
413592a9d0
35
.github/workflows/release.yaml
vendored
Normal file
35
.github/workflows/release.yaml
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
name: "Publish to NPM"
|
||||||
|
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install Node
|
||||||
|
uses: actions/setup-node@v3
|
||||||
|
with:
|
||||||
|
node-version: 16
|
||||||
|
registry-url: "https://registry.npmjs.org"
|
||||||
|
|
||||||
|
- name: Setup PNPM
|
||||||
|
uses: pnpm/action-setup@v2
|
||||||
|
with:
|
||||||
|
version: 7
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pnpm install
|
||||||
|
- name: Install Playwright
|
||||||
|
run: pnpm exec playwright install-deps
|
||||||
|
- name: Run tests
|
||||||
|
run: pnpm run test
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
run: pnpm publish
|
||||||
|
env:
|
||||||
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
Loading…
Reference in New Issue
Block a user