-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
18,919 additions
and
2,862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: "Bootstrap" | ||
runs: | ||
using: "composite" | ||
steps: | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16.4" | ||
- uses: actions/cache@v2 | ||
id: npm_cache | ||
with: | ||
path: ./node_modules | ||
key: deps-${{ hashFiles('package-lock.json') }} | ||
- name: Install dependencies | ||
run: | | ||
if echo ${{ steps.npm_cache.outputs.cache-hit }} | grep -c "true" | ||
then | ||
echo "Cache hit - skipping dependency installation" | ||
else | ||
npm ci | ||
fi | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: PR | ||
on: | ||
pull_request: | ||
branches: ['master'] | ||
|
||
jobs: | ||
lint: | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run lint:strict | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run test | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,39 @@ | ||
name: Release | ||
on: | ||
release: | ||
types: [created] | ||
push: | ||
branches: ['master'] | ||
|
||
jobs: | ||
lint: | ||
name: 'Lint' | ||
name: Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm ci | ||
- run: npm run lint | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run lint:strict | ||
preBuild: | ||
name: preBuild | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run build | ||
test: | ||
name: 'Tests' | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
- uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm ci | ||
- uses: ./.github/actions/bootstrap | ||
- run: npm run test | ||
publish: | ||
name: 'Publish' | ||
release: | ||
name: Release | ||
runs-on: ubuntu-latest | ||
needs: [lint, test] | ||
needs: [lint, test, preBuild] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v1 | ||
with: | ||
node-version: '12.x' | ||
registry-url: https://registry.npmjs.org/ | ||
- uses: actions/cache@v2 | ||
with: | ||
path: '**/node_modules' | ||
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }} | ||
- run: npm ci | ||
- run: npm publish --access public | ||
- uses: ./.github/actions/bootstrap | ||
- name: Release | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: npm run semantic-release |
Oops, something went wrong.