Skip to content
This repository has been archived by the owner on Oct 20, 2023. It is now read-only.

Commit

Permalink
DEPRECATED
Browse files Browse the repository at this point in the history
  • Loading branch information
garvae committed Oct 20, 2023
1 parent bac8714 commit ea2c2c8
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 18 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,33 @@
name: CI
on: [push]
jobs:
build:
name: Build and lint on Node ${{ matrix.node }} and ${{ matrix.os }}
on:
release:
types: [published]

jobs:
check:
name: Check on Node ${{ matrix.node }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: ['14.x']
node: ['18.x']
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- name: Checkout repo
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Use Node ${{ matrix.node }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache)
- name: Install deps
uses: bahmutov/npm-install@v1

- name: Lint && Build
run: yarn build
- name: Lint
run: yarn lint

- name: Test
run: yarn test


27 changes: 20 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,38 @@
name: Publish
on:
workflow_dispatch:
branches: [ master ]
inputs:
agreement:
description: "Run manually?"
type: choice
options:
- "yes"
- "no"
default: "no"
required: true

workflow_run:
workflows: [ "CI" ]
branches: [ master ]
types:
- completed

jobs:
build:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
publish:
if: |
github.event.inputs.agreement == 'yes' ||
github.event.workflow_run.conclusion == 'success'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
# Defaults to the user or organization that owns the workflow file
scope: '@garvae'
- run: yarn
- run: yarn publish:dist
- run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "1.1.0-deprecated",
"version": "1.1.1-deprecated",
"deprecated": true,
"description": "A simple animated waving flag from a jpg/png image",
"keywords": [
Expand Down

0 comments on commit ea2c2c8

Please sign in to comment.