Skip to content

Commit

Permalink
ci: copy-files
Browse files Browse the repository at this point in the history
  • Loading branch information
rbalet committed Nov 14, 2024
1 parent 91f22b2 commit 1abb1d9
Show file tree
Hide file tree
Showing 2 changed files with 4,655 additions and 3,010 deletions.
57 changes: 33 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,47 +10,56 @@ concurrency:
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
# - name: lint
# run: npm run lint
# - run: npm run build
# - name: Run test
# run: npm run test:ci
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4.0.1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: rbalet/ngx-mat-birthday-input
# build:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: 'npm'
# - run: npm i
# - name: lint
# run: npm run lint
# - run: npm run build
# - name: Run test
# run: npm run test:ci
# - name: Upload coverage reports to Codecov
# uses: codecov/codecov-action@v4.0.1
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# slug: rbalet/ngx-mat-birthday-input

publish:
needs: build
runs-on: ubuntu-latest
if: github.ref_name == 'main'
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

steps:
- uses: actions/checkout@v4
- name: ⬇️ Get latest code
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4

- name: ⬇️ Get Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build

- name: 📦 Install dependencies
run: npm i

- name: 🏗️ Build
run: npm run build && npm run copy-files

- name: release
run: cd dist/ngx-mat-birthday-input && npx semantic-release --branches main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NPM_CONFIG_PROVENANCE: true
Loading

0 comments on commit 1abb1d9

Please sign in to comment.