Skip to content

Commit

Permalink
Merge pull request #1 from somleng/setup_build
Browse files Browse the repository at this point in the history
  • Loading branch information
samnang authored Mar 24, 2023
2 parents f68ffe5 + c0d6393 commit 3c683fb
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
42 changes: 42 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,49 @@ jobs:

steps:
- uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".tool-versions"
cache: 'npm'

- run: npm ci
- run: npm run lint --if-present
- run: npm test
- run: npm run build

release:
name: Release
runs-on: ubuntu-latest

if: github.ref == 'refs/heads/main'
needs:
- build

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version-file: ".tool-versions"
cache: 'npm'

- name: Setup node packages
run: |
npm ci
npm run build
- name: Get release version
id: get_release_version
run: |
version=$(npm info twilio version | xargs echo)
echo "version=$version" >> $GITHUB_OUTPUT
- uses: google-github-actions/release-please-action@v3
id: release-please
with:
release-type: node
release-as: ${{ steps.get_release_version.outputs.version }}

0 comments on commit 3c683fb

Please sign in to comment.