airline-codes 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,4 +18,11 @@ jobs:
18
18
  registry-url: 'https://registry.npmjs.org'
19
19
  - run: npm install -g npm@latest
20
20
  - run: npm install
21
- - run: unset NODE_AUTH_TOKEN && npm publish --provenance --access public
21
+ - name: Publish if version not already published
22
+ run: |
23
+ VERSION=$(node -p "require('./package.json').version")
24
+ if npm view "airline-codes@$VERSION" version &>/dev/null; then
25
+ echo "Version $VERSION already published, skipping."
26
+ else
27
+ unset NODE_AUTH_TOKEN && npm publish --provenance --access public
28
+ fi
package/README.md CHANGED
@@ -1,4 +1,7 @@
1
1
  # Airline Codes
2
+
3
+ [![Docs](https://img.shields.io/badge/docs-mintlify-18a34a?style=flat-square)](https://mintlify.com/npow/airline-codes)
4
+
2
5
  > Airline codes (IATA) and information pulled from OpenFlights.org
3
6
 
4
7
  ## Install