diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8eb3fd9b..9b9ada2b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,14 +3,15 @@ on: push: branches: - master + jobs: build: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: - node-version: 14 + node-version: 16 - run: npm install - run: npm run start @@ -26,19 +27,16 @@ jobs: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./build - - run: npm install @jsdevtools/npm-publish -g - - run: npm-publish --token="${{ secrets.NPM_TOKEN }}" ./package.json - - name: Create Tag id: create_tag - uses: jaywcjlove/create-tag-action@v1.2.1 + uses: jaywcjlove/create-tag-action@v1.3.6 with: token: ${{ secrets.GITHUB_TOKEN }} package-path: ./package.json - name: Generate Changelog id: changelog - uses: jaywcjlove/changelog-generator@v1.4.6 + uses: jaywcjlove/changelog-generator@v1.5.7 with: token: ${{ secrets.GITHUB_TOKEN }} head-ref: ${{steps.create_tag.outputs.version}} @@ -61,4 +59,10 @@ jobs: ${{ steps.changelog.outputs.compareurl }} - ${{ steps.changelog.outputs.changelog }} \ No newline at end of file + ${{ steps.changelog.outputs.changelog }} + + - name: 📦 code-example publish to NPM + uses: JS-DevTools/npm-publish@v1 + with: + token: ${{ secrets.NPM_TOKEN }} + package: ./package.json \ No newline at end of file