diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..5a80290 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,3 @@ +{ + "extends": "@bifravst/eslint-config-typescript" +} diff --git a/.github/workflows/test-and-release.yaml b/.github/workflows/test-and-release.yaml new file mode 100644 index 0000000..b6cf7ad --- /dev/null +++ b/.github/workflows/test-and-release.yaml @@ -0,0 +1,33 @@ +name: Test and Release + +on: push + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + +jobs: + tests: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-node@v1 + with: + node-version: "12.x" + - name: Install latest npm + run: | + sudo npm install -g npm@ + npm config set update-notifier false + sudo chown -R $USER:$(id -gn $USER) /home/runner/.config + - name: Authenticate with NPM + run: | + echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > ~/.npmrc + - name: Install dependencies + run: npm ci --no-audit + - name: Compile + run: npx tsc + - name: Semantic release + continue-on-error: true + run: | + npm i --no-save semantic-release@next + npx semantic-release diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c6d8012 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules/ +npm-debug.log +dist/ diff --git a/.gitmessage b/.gitmessage new file mode 100644 index 0000000..03b1db2 --- /dev/null +++ b/.gitmessage @@ -0,0 +1,11 @@ + +# +# All commit messages must follow Angular Commit Message Guidelines: +# +# (): +# +# +# +#