From 35c2e3ff4ada21c8961e2de43d619864b79403ca Mon Sep 17 00:00:00 2001 From: Joseph Phelan Date: Tue, 16 Jan 2024 14:30:46 -0600 Subject: [PATCH] add github action --- .github/ISSUE_TEMPLATE.md | 18 ------------------ .github/PULL_REQUEST_TEMPLATE.md | 15 --------------- .github/workflows/publish.yml | 21 +++++++++++++++++++++ .github/workflows/test.yml | 24 ------------------------ 4 files changed, 21 insertions(+), 57 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE.md delete mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/publish.yml delete mode 100644 .github/workflows/test.yml diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md deleted file mode 100644 index 029f9f68..00000000 --- a/.github/ISSUE_TEMPLATE.md +++ /dev/null @@ -1,18 +0,0 @@ -### Summary: - -### Steps to reproduce: - - 1. - 2. - 3. - -### Expected behavior: - -### Link to example of issue: - - -### Additional notes: - diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md deleted file mode 100644 index 4bab3f47..00000000 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ /dev/null @@ -1,15 +0,0 @@ -Fixes #[issue number]. - -Changes proposed: - -- -- - -Upgrade Path (for changed or removed APIs): - - -Acceptance Checklist: -- [ ] The commit message follows the guidelines in `CONTRIBUTING.md`. -- [ ] Documentation (README.md) and examples have been updated as needed. -- [ ] If this is a code change, a spec testing the functionality has been added. -- [ ] If the commit message has [changed] or [removed], there is an upgrade path above. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 00000000..54fce95e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,21 @@ +name: Publish Package +on: + release: + types: [published] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-node@v3 + with: + node-version: "20.x" + cache: yarn + - run: yarn install --immutable + - run: yarn publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml deleted file mode 100644 index 592a0ac1..00000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,24 +0,0 @@ -name: Test - -on: - pull_request: - branches: - - master - - v4 - - chore/github-actions - -jobs: - main: - name: Test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - with: - fetch-depth: 1 - - - uses: actions/setup-node@v2 - with: - node-version: 16 - cache: 'npm' - cache-dependency-path: '**/package-lock.json' - - run: make deps-project tests-ci