diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml deleted file mode 100644 index 0ef59cd..0000000 --- a/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -github: [oblador] diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..a2d0607 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,26 @@ +name: Deploy + +on: + push: + branches: + - master + +jobs: + publish: + name: Release new version + if: github.repository_owner == 'oblador' + runs-on: ubuntu-latest + environment: Deploy + permissions: + id-token: write + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Publish + uses: JS-DevTools/npm-publish@v3 + with: + token: ${{ secrets.NPM_PUBLISH_TOKEN }} + provenance: true diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..373d01a --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,21 @@ +name: Tests + +on: + - push + - pull_request + +jobs: + test: + name: Static analysis + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Use Node.js + uses: actions/setup-node@v3 + with: + node-version: "20" + - name: Install dependencies + run: yarn --frozen-lockfile --non-interactive --silent --ignore-scripts + - name: Run static analysis + run: yarn test diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0f12a2e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,20 +0,0 @@ -language: node_js -node_js: -- stable -cache: - yarn: true - directories: - - node_modules -install: -- yarn -script: -- yarn test -deploy: - provider: npm - email: joel@oblador.se - api_key: - secure: "KETX2hAy9M6jDWctTKZX7osMzvkH3goD3dmoK9x+s0UnUEDmppk1Qoj+HP3rDs5foLBP7bXdFKsMxBo91MFy+816c5+rAcR7y6mIaaHIcfsTB2sxFwAL43ikJ9hffb58IrgqHPr0Ns64e6CUXqGe60F1CADLoDfYl2Yd3HZOuKLVlBqCEqLuHAFVPB7ollhFgnhhEOJKr2BaxqbUJmvgSHuqdLwwmj9O2/1sADhLI2iF/rnEDDlKiHM1mzkfcvbUKsAKyElCvzRhTAsbyBfzstpen28ln2HIEGi4mNsWdvXENyFIxv2UMKque/d0PQR/A+axrn+O4vrXNUAcPe1qcQfITYH8MbM92iPdFmpFarQGV+lAsE0Uy+7OHKYe4/oHHvIE7S3qsZEesZWFc4MUacaE9FbrtxV6YYmVAo+fN5Cq2iFCerr/jiZTfusq9Txmj3PX7+IImeYAk4ssCxTUtkgMgacSDT1626zect71SpJZy1a/QrwHYs28gd97vfGs6UsZGWge/ogS3IUrnJ5fxFlv90+Y/q8ntAdbCa7HUYXEmkFPN9CeOaom31DbbWhjgBK0uUrCrq56cM3adFlHl60plIB/72kQPsTgHOIu1Ei3jZp8MFdhOnK+KJlflhZNi5+3p3u0UOX5flvlx8WCy/a4YEUAa8m7ma43V8JKfNI=" - on: - tags: true - repo: oblador/react-native-progress - condition: "$TRAVIS_TAG =~ ^v[0-9]+\\.[0-9]+\\.[0-9]+.*$"