Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create main.yml #1

Merged
merged 26 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
d4e558b
Create main.yml
josephnobes-stfc Jan 24, 2024
7c638a8
Update main.yml
josephnobes-stfc Jan 24, 2024
3447636
Merge branch 'main' into josephnobes-stfc-patch-1
josephnobes-stfc Jan 24, 2024
a956d0c
attempt to fix git key error
josephnobes-stfc Jan 25, 2024
23e004c
Update main.yml
josephnobes-stfc Jan 25, 2024
1673c14
Update main.yml
josephnobes-stfc Jan 25, 2024
5ed153a
Update main.yml
josephnobes-stfc Jan 25, 2024
d1ba3a9
Update main.yml
josephnobes-stfc Jan 25, 2024
262ee2b
Update main.yml
josephnobes-stfc Jan 25, 2024
b7ad0ee
Merge branch 'main' into josephnobes-stfc-patch-1
josephnobes-stfc Jan 25, 2024
6c4d63e
Please the linter so that the CI can run
josephnobes-stfc Jan 25, 2024
f24afa1
Merge branch 'josephnobes-stfc-patch-1' of github.com:stfc-aeg/babyd-…
josephnobes-stfc Jan 25, 2024
df3b8b4
More linting fixes
josephnobes-stfc Jan 25, 2024
06331b8
Update main.yml
josephnobes-stfc Jan 25, 2024
47559fd
Update main.yml
josephnobes-stfc Jan 25, 2024
ecc3a2a
Update main.yml
josephnobes-stfc Jan 25, 2024
ff1c333
Update main.yml
josephnobes-stfc Jan 25, 2024
df7cc09
Update main.yml
josephnobes-stfc Jan 25, 2024
8101103
Update main.yml
josephnobes-stfc Jan 25, 2024
aaf1ea5
Update main.yml
josephnobes-stfc Jan 25, 2024
b2d6edd
Update main.yml
josephnobes-stfc Jan 25, 2024
2f2089d
Update main.yml
josephnobes-stfc Jan 25, 2024
8639071
Update main.yml
josephnobes-stfc Jan 25, 2024
e304a29
Update main.yml
josephnobes-stfc Jan 25, 2024
03b23ea
Update main.yml
josephnobes-stfc Jan 25, 2024
343b0e0
Update main.yml
josephnobes-stfc Jan 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
63 changes: 63 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
name: Node.js CI

# This workflow will attempt to build static resources with NPM for any commit to main, or PR'ed to main.
# Additionally, for any tags pushed (that start with 'v' indicating a version), a release will be created
# including the static resources. This release will be created as a draft so that more detailed notes can
# be added before marking it as a proper release. If a draft release already exists matching the tag name,
# the existing artifacts will be overridden, but the release body will remain. If the existing release is
# not a draft, nothing will be overridden.

on:
push:
tags:
- 'v*'
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Reconfigure git to use HTTP authentication
run: >
GIT_TRACE=1 git config --global url."https://github.com/".insteadOf ssh://[email protected]/
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
timeout-minutes: 2
- run: npm run build --if-present
timeout-minutes: 10
#- run: npm test temporarily remove; I think it's failing due to axios module import in odin-react

- name: Create zip archive
run: |
cd build
zip -r build.zip .
- name: List contents of zip
run: unzip -l build/build.zip
- name: Create release if tagged
if: startsWith(github.ref, 'refs/tags/v')
uses: ncipollo/release-action@v1
with:
artifactErrorsFailBuild: true
artifacts: build/build.zip

# Create as a draft so that it can be vetted and notes added
draft: true
generateReleaseNotes: true
skipIfReleaseExists: true

# Update an existing release, but only if it's draft or prerelease. If notes already exist, leave them.
allowUpdates: true
updateOnlyUnreleased: true
omitBodyDuringUpdate: true
Loading
Loading