Skip to content

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo… #1688

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo…

chore(deps): update dependency @nordicsemiconductor/asset-tracker-clo… #1688

name: Test and Release
on: push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PUBLIC_STORAGE_URL: https://storage.needs-assessment.distributeaid.dev/
PUBLIC_DEFAULT_FORM_URL: https://storage.needs-assessment.distributeaid.dev/form/01FX5CZCM5FZ0K0EPKJJB1RPS6
DOMAIN: needs-assessment.distributeaid.dev
jobs:
test-and-release:
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
- name: Keep npm cache around to speed up installs
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.OS }}-build-${{ hashFiles('**/package-lock.json') }}
- name: Install dependencies
run: npm ci --no-audit
- name: Compile TypeScript
run: npx tsc
- name: Run unit tests
run: npm test
- name: Build
env:
PUBLIC_VERSION: ${{ github.sha }}
run: npm run build
- uses: actions/upload-artifact@v3
if: always()
with:
name: needs-assessment-${{ github.sha }}
path: build
- name: Publish to GitHub pages
if: github.ref == 'refs/heads/saga'
run: |
echo "machine github.com login accesskey password ${{ secrets.GITHUB_TOKEN }}" > ~/.netrc
git config --global user.email "actions@example.com"
git config --global user.name "GitHub Actions"
cd build
touch .nojekyll
echo ${{ env.DOMAIN }} > CNAME
git init
git add -A
git commit -m "update web app"
git remote add origin https://github.com/${GITHUB_REPOSITORY}.git
git push -f origin HEAD:gh-pages
- name: Semantic release
continue-on-error: true
run: npx semantic-release