diff --git a/.github/workflows/nodejs.yml b/.github/workflows/main.yml similarity index 70% rename from .github/workflows/nodejs.yml rename to .github/workflows/main.yml index 3080634..c40f173 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/main.yml @@ -65,23 +65,24 @@ jobs: - name: Run unit tests run: npm run test-coverage - # publish: - # runs-on: ubuntu-latest - - # steps: - # - name: Checkout code - # uses: actions/checkout@v2 + publish: + runs-on: ubuntu-latest + needs: test - # - name: Setup Node.js - # uses: actions/setup-node@v3 - # with: - # node-version: '18' + steps: + - name: Checkout repository + uses: actions/checkout@v2 - # - name: Install dependencies - # run: npm install + - name: Setup Node.js + uses: actions/setup-node@v3 + with: + node-version: '18' - # - name: Publish to npm - # run: npm publish --access public - # env: - # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + - name: Install Semantic Release + run: npm install -g semantic-release@17 @semantic-release/git@10 @semantic-release/changelog@7 @semantic-release/npm@7 + - name: Run Semantic Release + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + run: npx semantic-release \ No newline at end of file diff --git a/package.json b/package.json index 8da0408..3f2839d 100644 --- a/package.json +++ b/package.json @@ -31,5 +31,17 @@ "directories": { "doc": "docs", "test": "test" - } + }, + "keywords": [ + "semantic-release", + "plugin", + "force-version" + ], + "publishConfig": { + "access": "public", + "registry": "https://registry.npmjs.org/" + }, + "contributors": [ + "Semenov Illia doku_is@icloud.com" + ] }