Bump @types/node from 20.4.2 to 20.7.1 #238
Workflow file for this run
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
--- | |
name: CI/CD | |
on: | |
pull_request: {} | |
push: | |
branches: | |
- main | |
tags: | |
- v* | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
- name: Set up node16 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- name: Run npm | |
run: npm install && npm run all | |
- name: Create tag for test release | |
run: | | |
git tag -f ghatest | |
git push -f origin ghatest | |
- name: Create test release without assets | |
uses: cb80/pubrel@latest | |
with: | |
ref: 'refs/tags/ghatest' | |
replace: ghatest | |
- name: Create test release with assets | |
uses: cb80/pubrel@latest | |
with: | |
ref: 'refs/tags/ghatest' | |
replace: ghatest | |
files: | | |
README.md | |
.git/index | |
- name: Download assets | |
uses: cb80/dlassets@latest | |
with: | |
tag: ghatest | |
to: dl | |
- name: Compare assets | |
run: | | |
ls -al dl/ | |
cmp README.md dl/README.md | |
cmp .git/index dl/index | |
- name: Remove test release | |
uses: ./ | |
with: | |
tag: ghatest | |
- name: Remove tag for test release | |
run: git push origin :ghatest | |
- name: Update latest tag when pushing to main | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
run: | | |
git tag -f latest | |
git push -f origin latest | |
- name: Publish myself | |
if: ${{ github.event_name == 'push' }} | |
uses: cb80/pubrel@latest | |
with: | |
replace: latest |